Merge pull request #515 from PeterDaveHello/patch-1

Leave no apk cache in the Docker image
This commit is contained in:
Ajay Ramachandran
2022-10-23 11:03:13 -04:00
committed by GitHub

View File

@@ -6,11 +6,11 @@ RUN npm ci && npm run tsc
FROM node:16-alpine as app
WORKDIR /usr/src/app
RUN apk add git postgresql-client
RUN apk add --no-cache git postgresql-client
COPY --from=builder ./node_modules ./node_modules
COPY --from=builder ./dist ./dist
COPY ./.git ./.git
COPY entrypoint.sh .
COPY databases/*.sql databases/
EXPOSE 8080
CMD ./entrypoint.sh
CMD ./entrypoint.sh