This commit is contained in:
prosety
2022-11-17 10:20:05 +01:00
parent c335ac561d
commit 6936090d42
3 changed files with 6 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
node_modules/
dist/
npm-debug.log

View File

@@ -1,5 +1,5 @@
FROM node:18-alpine
EXPOSE $PORT_EXPOSED
WORKDIR /app
COPY package.json package-lock.json /app/
@@ -9,4 +9,5 @@ RUN npm install
COPY . .
RUN npm run build
CMD node dist/server/entry.mjs
EXPOSE ${PORT_EXPOSED}
CMD ["node", "dist/server/entry.mjs"]

View File

@@ -8,7 +8,8 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"docker": "docker build . -t pegazio && docker run --network host -p 3000:3000 -d pegazio"
},
"dependencies": {
"@astrojs/node": "^3.0.0",