Revert "Rebase docker image on top of alpine linux"
This reverts commit 42bc4c8acb
.
This commit is contained in:
parent
a55d4634b1
commit
f8ad766695
1 changed files with 4 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,18 +1,16 @@
|
|||
FROM alpine as base
|
||||
FROM node:16-bullseye as base
|
||||
|
||||
RUN apk add --no-cache nodejs yarn openssl tini
|
||||
RUN apt-get update && apt-get install -y openssl
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ADD yarn.lock package.json ./
|
||||
RUN yarn install --production
|
||||
|
||||
FROM alpine as prod
|
||||
FROM node:16-bullseye-slim as prod
|
||||
|
||||
RUN apk add --no-cache nodejs yarn openssl tini
|
||||
RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY --from=base /app /app
|
||||
ADD . .
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
CMD ["yarn", "start"]
|
||||
|
|
Loading…
Reference in a new issue