Skip to content

Commit

Permalink
Revert "Revert "Rebase docker image on top of alpine linux""
Browse files Browse the repository at this point in the history
This reverts commit f8ad766.
  • Loading branch information
jlongster committed May 3, 2022
1 parent f8ad766 commit c4badb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
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
WORKDIR /app
ENV NODE_ENV=production
ADD yarn.lock package.json ./
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
COPY --from=base /app /app
ADD . .

ENTRYPOINT ["/sbin/tini", "--"]
CMD ["yarn", "start"]

0 comments on commit c4badb9

Please sign in to comment.