homepage/Dockerfile

10 lines
274 B
Docker

FROM node:lts-alpine AS build
WORKDIR /app
COPY . .
ARG ASTRO_TELEMETRY_DISABLE
ENV ASTRO_TELEMETRY_DISABLE $ASTRO_TELEMETRY_DISABLE
RUN npm install --production && \
npm run build
FROM nginx:alpine
COPY --from=build --chown=nginx:nginx /app/dist /usr/share/nginx/html