Compare commits

..

No commits in common. "9a3c55d235417a5947a23b5258c71ec2b8bbfa5b" and "a4bdb4dca4aaba397688d43f1ec3a26cb2143dea" have entirely different histories.

View File

@ -1,15 +1,15 @@
FROM node:16.6.2-alpine3.14 FROM node:16-alpine as run
WORKDIR /app
COPY package.json . COPY package.json .
COPY yarn.lock . RUN yarn --prod
RUN yarn --production --frozen-lockfile
ENV NODE_ENV production
EXPOSE 3000
WORKDIR /app
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"]