prod
This commit is contained in:
1 parent
d041575600
commit
69833d2067
5 files changed
+744
-377
No files matched your search
+10
-2
@@ -1,10 +1,18 @@
|
||||
# Frontend Dockerfile for Placebo.mk TanStack React App
|
||||
# PWA Dockerfile for Placebo.mk Progressive Web App
|
||||
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Build arguments for environment variables
|
||||
ARG VITE_API_URL
|
||||
ARG VITE_CMS_URL
|
||||
|
||||
# Set environment variables for build
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
ENV VITE_CMS_URL=$VITE_CMS_URL
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
COPY package-lock.json* ./
|
||||
@@ -42,4 +50,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
EXPOSE 80
|
||||
|
||||
# Start nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in new issue
Block a user