Files
CoqDecks/server/Dockerfile
T
Gareth Latty a3a62fba2e Resolve some bugs and refactor localizations.
Resolve #167: Correct capitalization on cards
Resolve #169: Fix cast code failing to compile by moving to ES6 for the closure compiler target.
Move to noun and plural set-up which should make localization easier.
2020-09-27 19:08:13 +01:00

43 lines
1.1 KiB
Docker

FROM node:14-alpine AS build
WORKDIR /md
COPY ["./package.json", "./package-lock.json", "./"]
RUN ["npm", "ci"]
COPY ["./src", "./src"]
COPY ["./tsconfig.json", "./config.json5", "./"]
RUN ["npm", "run", "build"]
FROM node:14-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=dev
ENV MD_VERSION $VERSION
LABEL maintainer="team@rereadgames.com"
LABEL org.label-schema.name="massivedecks/server"
LABEL org.label-schema.description="The web server for Massive Decks, a comedy party game."
LABEL org.label-schema.url="https://github.com/Lattyware/massivedecks"
LABEL org.label-schema.vcs-url="https://github.com/Lattyware/massivedecks"
LABEL org.label-schema.vendor="Reread Games"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.version=$VERSION
WORKDIR /md
COPY ["./package.json", "./package-lock.json", "./"]
RUN ["npm", "ci", "--only=production"]
COPY ["./config.json5", "./"]
COPY ["./decks", "./decks"]
COPY --from=build ["/md/dist", "./"]
EXPOSE 8081
USER node
CMD ["node", "--es-module-specifier-resolution=node", "./index.js"]