Dockerfile inital
This commit is contained in:
parent
72fb6fbc20
commit
3907482b06
4 changed files with 39 additions and 9 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM node:18-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM node:18-alpine AS prod
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/dist /app/dist
|
||||
COPY --from=build /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/package.json /app/package.json
|
||||
COPY --from=build /app/.env /app/.env
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
Loading…
Add table
Add a link
Reference in a new issue