pleshevski.ru/Dockerfile

22 lines
286 B
Docker

FROM node:16.14.2-alpine3.14
WORKDIR /app
RUN apk update \
&& apk upgrade \
&& apk add --no-cache bash git openssh
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build \
&& npm prune --production \
&& apk del bash git openssh
EXPOSE 30000
CMD npm run start