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 ./
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2022-03-22 10:57:13 +03:00
|
|
|
RUN npm run build \
|
2022-03-22 10:15:23 +03:00
|
|
|
&& npm prune --production \
|
|
|
|
&& apk del bash git openssh
|
|
|
|
|
|
|
|
EXPOSE 30000
|
|
|
|
|
2022-03-22 10:57:13 +03:00
|
|
|
CMD npm run start
|