homepage/Dockerfile

11 lines
274 B
Text
Raw Permalink Normal View History

2024-01-31 15:38:53 +01:00
FROM node:lts-alpine AS build
2024-01-31 14:55:55 +01:00
WORKDIR /app
2024-01-31 17:20:53 +01:00
COPY . .
ARG ASTRO_TELEMETRY_DISABLE
ENV ASTRO_TELEMETRY_DISABLE $ASTRO_TELEMETRY_DISABLE
2024-01-31 15:38:53 +01:00
RUN npm install --production && \
npm run build
2024-01-31 14:55:55 +01:00
2024-01-31 17:20:53 +01:00
FROM nginx:alpine
COPY --from=build --chown=nginx:nginx /app/dist /usr/share/nginx/html