You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
FROM node:20-alpine AS build-stage
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM busybox:1.35
|
|
RUN adduser -D static
|
|
USER static
|
|
WORKDIR /home/static
|
|
COPY --from=build-stage /app/dist .
|
|
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"] |