Files
sct-overseerr/Dockerfile
sct 3f2a04c881 feat: about page initial version
Adding something to the about page for now, including the app version to better know what versions
of the app people are running
2020-12-15 07:27:30 +00:00

29 lines
520 B
Docker

FROM node:12.18-alpine AS BUILD_IMAGE
COPY . /app
WORKDIR /app
RUN yarn --frozen-lockfile && \
yarn build
# remove development dependencies
RUN yarn install --production --ignore-scripts --prefer-offline
RUN yarn cache clean
FROM node:12.18-alpine
ARG COMMIT_TAG
ENV COMMIT_TAG=${COMMIT_TAG}
COPY . /app
WORKDIR /app
# copy from build image
COPY --from=BUILD_IMAGE /app/dist ./dist
COPY --from=BUILD_IMAGE /app/.next ./.next
COPY --from=BUILD_IMAGE /app/node_modules ./node_modules
CMD yarn start
EXPOSE 3000