You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
514 B

FROM node:boron-alpine as builder
RUN apk add -U build-base python
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN yarn && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline
FROM node:boron-alpine
LABEL maintainer="butlerx@notthe.cloud"
WORKDIR /app
ENV NODE_ENV=production
RUN apk add -U openssh && \
adduser -D -h /home/term -s /bin/sh term && \
echo "term:term" | chpasswd
EXPOSE 3000
COPY --from=builder /usr/src/app /app
ENTRYPOINT [ "/usr/local/bin/yarn", "start" ]