config for oublic vars and secrets
This commit is contained in:
parent
b165d65acb
commit
3108c0628a
3 changed files with 12 additions and 1 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -14,4 +14,8 @@ vite.config.ts.timestamp-*
|
||||||
.netlify
|
.netlify
|
||||||
|
|
||||||
# IDE files
|
# IDE files
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
err.log
|
||||||
|
out.log
|
||||||
|
|
@ -8,6 +8,10 @@ WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --legacy-peer-deps
|
RUN npm ci --legacy-peer-deps
|
||||||
|
|
||||||
|
# Build-time args (for VITE_PUBLIC_* variables - these are public anyway)
|
||||||
|
ARG VITE_PUBLIC_CLOUDINARY_CLOUD_NAME=""
|
||||||
|
ENV VITE_PUBLIC_CLOUDINARY_CLOUD_NAME=${VITE_PUBLIC_CLOUDINARY_CLOUD_NAME}
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
PORT: ${PORT:-3001}
|
PORT: ${PORT:-3001}
|
||||||
|
VITE_PUBLIC_CLOUDINARY_CLOUD_NAME: ${VITE_PUBLIC_CLOUDINARY_CLOUD_NAME:-dkvjosg5p}
|
||||||
container_name: floter-design
|
container_name: floter-design
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -16,6 +17,8 @@ services:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: ${PORT:-3001}
|
PORT: ${PORT:-3001}
|
||||||
HOST: 0.0.0.0
|
HOST: 0.0.0.0
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue