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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
website/Dockerfile

21 lines
375 B

# syntax=docker/dockerfile:1
FROM node:23 as build
WORKDIR /app
COPY ./package.json /app/package.json
COPY ./package-lock.json /app/package-lock.json
RUN npm install
COPY . .
RUN npm run build
FROM nginx:1.22.0-alpine
WORKDIR /var/www/
RUN mkdir -p /var/www/website
COPY --from=build /app/public /var/www/website
COPY nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80