Add API URL injection back and Docker builds.

This commit is contained in:
Paul
2021-08-30 15:24:15 +01:00
parent c370a24fad
commit f6eac9362b
7 changed files with 173 additions and 10 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:15-buster AS builder
WORKDIR /usr/src/app
COPY package*.json ./
RUN yarn --no-cache
COPY . .
COPY .env.build .env
RUN yarn typecheck
RUN yarn build
RUN npm prune --production
FROM node:15-buster
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app .
RUN rm ./.env
EXPOSE 5000
CMD [ "yarn", "start:inject" ]