FEAT: try build in dcompose

This commit is contained in:
prosety
2022-11-14 10:54:26 +01:00
parent f6319ed2b7
commit ada09a7370
4 changed files with 19 additions and 11 deletions

View File

@@ -1,5 +1,9 @@
FROM node:18
FROM node:18-alpine3.15
USER root
COPY ./dist /app
CMD node /app/server/entry.mjs
RUN mkdir /app
WORKDIR /app
COPY . .
RUN npm install
EXPOSE 3000
CMD cd /app && node dist/server/entry.mjs