20 lines
316 B
Docker
20 lines
316 B
Docker
FROM node:26 as builder
|
|
|
|
RUN apt update && apt upgrade -y
|
|
|
|
# Make an /app dir, which everything will eventually live in
|
|
RUN mkdir -p /app
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
FROM node:26 as runner
|
|
|
|
# Copy build to runner
|
|
COPY --from=builder /app/build/* /app/
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT exec node /app
|