Skip to content
Snippets Groups Projects
Commit 42bc4c8a authored by Luis López's avatar Luis López Committed by James Long
Browse files

Rebase docker image on top of alpine linux

parent efd273bf
No related branches found
No related tags found
No related merge requests found
FROM node:16-bullseye as base FROM alpine as base
RUN apt-get update && apt-get install -y openssl RUN apk add --no-cache nodejs yarn openssl tini
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ADD yarn.lock package.json ./ ADD yarn.lock package.json ./
RUN yarn install --production RUN yarn install --production
FROM node:16-bullseye-slim as prod FROM alpine as prod
RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/* RUN apk add --no-cache nodejs yarn openssl tini
WORKDIR /app WORKDIR /app
COPY --from=base /app /app COPY --from=base /app /app
ADD . . ADD . .
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["yarn", "start"] CMD ["yarn", "start"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment