chore: add prod dockerfile for server
This commit is contained in:
12
infra/prod/server/Dockerfile
Normal file
12
infra/prod/server/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM node:18-alpine as server
|
||||||
|
|
||||||
|
RUN apk update && apk upgrade && \
|
||||||
|
apk add --no-cache bash git openssh && \
|
||||||
|
apk add libc6-compat
|
||||||
|
|
||||||
|
WORKDIR /app/server
|
||||||
|
COPY ./server .
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
CMD ["npm", "run", "start"]
|
||||||
Reference in New Issue
Block a user