Compare commits

...

2 Commits

Author SHA1 Message Date
9a3c55d235
Merge branch 'main' of https://git.odit.services/kauft.es/linkylinky
Some checks failed
continuous-integration/drone/push Build is failing
2021-08-14 10:42:51 +02:00
86ef277c90
smaller Dockerfile [skip-ci] 2021-08-14 10:42:42 +02:00

View File

@ -1,15 +1,15 @@
FROM node:16-alpine as run FROM node:16.6.2-alpine3.14
COPY package.json .
RUN yarn --prod
ENV NODE_ENV production
EXPOSE 3000
WORKDIR /app WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn --production --frozen-lockfile
COPY migrations ./migrations COPY migrations ./migrations
COPY src/server.js ./ COPY src/server.js ./
COPY knexfile.js ./ COPY knexfile.js ./
#
FROM astefanutti/scratch-node:16.0.0
WORKDIR /app
COPY --from=0 /app /
ENV NODE_ENV production
EXPOSE 3000
CMD ["node", "./server.js"] CMD ["node", "./server.js"]