-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (18 loc) · 792 Bytes
/
Dockerfile
File metadata and controls
20 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:lts AS builder
RUN apt update && apt install -y git build-essential
WORKDIR /app
COPY package.json pnpm-lock.yaml /app/
RUN npm i -g pnpm
RUN pnpm install --frozen-lockfile
COPY . /app/
ARG NEXT_PUBLIC_SUPABASE_URL=ECALPER_EB_OT_GNIRTS_EUQINU_YREV_EMOS_SUPABASE_URL
ARG NEXT_PUBLIC_SUPABSE_PUBLIC_ANON_KEY=ECALPER_EB_OT_GNIRTS_EUQINU_YREV_EMOS_SUPABSE_PUBLIC_ANON_KEY
RUN pnpm run build && pnpm run export
FROM patrikjuvonen/docker-nginx-http3:latest
ENV NGINX_ENVSUBST_OUTPUT_DIR /etc/nginx
COPY nginx/nginx.conf /etc/nginx/templates/nginx.conf.template
COPY nginx/site-common.conf /etc/nginx/site-common.conf
COPY --from=builder /app/out/ /var/www/static/
COPY docker-entry-static.sh /app/docker-entry-static.sh
WORKDIR /var/www/static
CMD ["sh", "/app/docker-entry-static.sh"]