Fix docker container

This commit is contained in:
Ajay
2022-05-04 01:46:41 -04:00
parent 5b177a3e53
commit 5f53859c94
4 changed files with 26 additions and 22 deletions

View File

@@ -1,13 +1,15 @@
FROM node:16-alpine as builder
RUN apk add --no-cache --virtual .build-deps python make g++
RUN apk add --no-cache --virtual .build-deps python3 make g++
COPY package.json package-lock.json tsconfig.json entrypoint.sh ./
COPY src src
RUN npm ci && npm run tsc
FROM node:16-alpine as app
WORKDIR /usr/src/app
COPY --from=builder node_modules .
COPY --from=builder dist ./dist
RUN apk add git
COPY --from=builder ./node_modules ./node_modules
COPY --from=builder ./dist ./dist
COPY ./.git ./.git
COPY entrypoint.sh .
COPY databases/*.sql databases/
EXPOSE 8080