mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-19 06:12:15 +01:00
29 lines
610 B
Plaintext
29 lines
610 B
Plaintext
# syntax=docker/dockerfile:1
|
|
FROM node:20.11 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY ./package*.json .
|
|
COPY ./yarn.lock .
|
|
ENV NODE_ENV='development'
|
|
RUN yarn install --production=false --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
ENV VITE_COMMIT_HASH=""
|
|
ENV VITE_APP_VERSION="custom"
|
|
RUN yarn build
|
|
|
|
FROM nginx:stable-alpine-slim
|
|
EXPOSE 80
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
ENV CACHE_RELAY=""
|
|
ENV IMAGE_PROXY=""
|
|
ENV CORS_PROXY=""
|
|
ADD ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT "/usr/local/bin/docker-entrypoint.sh"
|