mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-05 04:10:05 -05:00
docker support
This commit is contained in:
parent
a90abfb2f6
commit
c3d14eb3f1
2 changed files with 12 additions and 0 deletions
|
@ -20,4 +20,5 @@ RUN rm -rf ./*
|
||||||
# Copy static assets from builder stage
|
# Copy static assets from builder stage
|
||||||
COPY --from=builder /app/dist .
|
COPY --from=builder /app/dist .
|
||||||
# Containers run nginx with global directives and daemon off
|
# Containers run nginx with global directives and daemon off
|
||||||
|
EXPOSE 80
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
11
docker/docker-compose.yml
Normal file
11
docker/docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
build:
|
||||||
|
context: "../"
|
||||||
|
dockerfile: ./docker/Dockerfile
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
environment:
|
||||||
|
- VITE_BACKEND_URL=http://localhost:7000
|
||||||
|
- VITE_INSTANCE_URL=http://localhost:80
|
Loading…
Reference in a new issue