pleshevski.ru/Dockerfile

23 lines
285 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 \
&& apk add --no-cache bash git openssh make
COPY package*.json ./
RUN npm install
COPY . .
RUN make build \
&& npm prune --production \
&& apk del bash git openssh
EXPOSE 30000
CMD make start