Complete residential site build with Docker Compose & Gitea Actions deployment
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Stage 1: Build
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Note: Context will be the project root, so paths are relative to root
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Serve
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -0,0 +1,10 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
chesco-site:
|
||||
image: chesco-site:latest
|
||||
container_name: chesco-site
|
||||
restart: always
|
||||
ports:
|
||||
- "8081:80"
|
||||
# If you ever want to see logs or add custom configs,
|
||||
# they will be managed here.
|
||||
Reference in New Issue
Block a user