pleshevski.ru/Dockerfile

24 lines
318 B
Text
Raw Normal View History

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:39:52 +03:00
COPY src tsconfig.json ./
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
COPY static ./
2022-03-22 10:15:23 +03:00
EXPOSE 30000
2022-03-22 10:57:13 +03:00
CMD npm run start