2022-03-22 10:15:23 +03:00
|
|
|
FROM node:16.14.2-alpine3.14
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apk update \
|
|
|
|
&& apk upgrade \
|
2022-03-22 10:57:13 +03:00
|
|
|
&& apk add --no-cache bash git openssh
|
2022-03-22 10:15:23 +03:00
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
2022-03-22 19:39:52 +03:00
|
|
|
RUN npm install \
|
|
|
|
&& apk del bash git openssh
|
2022-03-22 10:15:23 +03:00
|
|
|
|
2022-03-22 19:47:47 +03:00
|
|
|
COPY tsconfig.json ./
|
|
|
|
COPY src ./src
|
2022-03-22 10:15:23 +03:00
|
|
|
|
2022-03-22 10:57:13 +03:00
|
|
|
RUN npm run build \
|
2022-03-22 19:39:52 +03:00
|
|
|
&& npm prune --production
|
|
|
|
|
2022-03-22 19:47:47 +03:00
|
|
|
COPY static ./static/
|
2022-03-22 10:15:23 +03:00
|
|
|
|
|
|
|
EXPOSE 30000
|
|
|
|
|
2022-03-22 10:57:13 +03:00
|
|
|
CMD npm run start
|