mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-03-29 09:19:54 +00:00
19 lines
337 B
Docker
19 lines
337 B
Docker
FROM node:18-bullseye AS builder
|
|
|
|
WORKDIR /devel
|
|
RUN apt-get update ; apt-get upgrade -y ; apt-get install -y build-essential
|
|
COPY . .
|
|
RUN npm i ; npm run build
|
|
|
|
FROM node:20-alpine
|
|
|
|
EXPOSE 8080
|
|
WORKDIR /exec
|
|
RUN apk add --update nodejs npm
|
|
COPY --from=builder /devel/ .
|
|
RUN adduser -D jankclient
|
|
|
|
USER jankclient
|
|
|
|
CMD ["npm", "start"]
|