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
|
||||
|
||||
# IDE files
|
||||
.idea
|
||||
.idea
|
||||
|
||||
# Logs
|
||||
err.log
|
||||
out.log
|
||||
|
|
@ -8,6 +8,10 @@ WORKDIR /app
|
|||
COPY package*.json ./
|
||||
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 . .
|
||||
RUN npm run build
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
args:
|
||||
PORT: ${PORT:-3001}
|
||||
VITE_PUBLIC_CLOUDINARY_CLOUD_NAME: ${VITE_PUBLIC_CLOUDINARY_CLOUD_NAME:-dkvjosg5p}
|
||||
container_name: floter-design
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
|
@ -16,6 +17,8 @@ services:
|
|||
NODE_ENV: production
|
||||
PORT: ${PORT:-3001}
|
||||
HOST: 0.0.0.0
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
healthcheck:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue