Url shortner
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
492 B

FROM registry.odit.services/hub/library/node:16.6.2-alpine3.14
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn --production --frozen-lockfile
COPY migrations ./migrations
COPY src ./src
COPY knexfile.js ./
RUN mkdir db
#
# FROM astefanutti/scratch-node:16.0.0
FROM registry.odit.services/hub/library/node:16.6.2-alpine3.14
WORKDIR /app
COPY --from=0 /app /app
ENV NODE_ENV production
EXPOSE 3000
ENTRYPOINT ["/bin/sh", "-c", "yarn migrate && node ./src/server.js"]