build: optimize Dockerfiles for production and pin dependencies
Implement multi-stage build and static server for frontend Run containers as non-root user and set production environment Pin all package dependencies to exact versions
This commit is contained in:
@@ -41,9 +41,11 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
args:
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:3001}
|
||||
VITE_SITE_URL: ${VITE_SITE_URL:-https://pokopiawiki.tootaio.com}
|
||||
environment:
|
||||
VITE_API_BASE_URL: http://localhost:3001
|
||||
VITE_SITE_URL: https://pokopiawiki.tootaio.com
|
||||
PORT: 20015
|
||||
ports:
|
||||
- "20015:20015"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user