Skip to content

Commit

Permalink
use node:lts-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
leafmoes authored Nov 1, 2024
1 parent 9ce0e1d commit 595812f
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
FROM node:lts AS builder
FROM node:lts-alpine

WORKDIR /app

COPY . /app
COPY package*.json ./

RUN yarn install --registry https://registry.npmmirror.com/
RUN npm install

FROM zenika/alpine-chrome:124-with-node

COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/api /app/api
COPY --from=builder /app/node_modules /app/node_modules

WORKDIR /app

USER root
COPY . .

EXPOSE 8787

CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit 595812f

Please sign in to comment.