nostrudel/dockerfile
2023-10-04 12:26:38 -05:00

12 lines
240 B
Plaintext

# syntax=docker/dockerfile:1
FROM node:18
WORKDIR /app
COPY . /app/
ENV VITE_COMMIT_HASH=""
ENV VITE_APP_VERSION="custom"
RUN yarn install && yarn build
FROM nginx:stable-alpine-slim
EXPOSE 80
COPY --from=0 /app/dist /usr/share/nginx/html