0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

Fix building steps

This commit is contained in:
dragongoose 2023-04-10 16:33:11 -04:00
parent 68dd4eef64
commit 10c94c4c24
No known key found for this signature in database
GPG key ID: 50DB99B921579009
2 changed files with 12 additions and 4 deletions

View file

@ -6,6 +6,13 @@
FROM node:16 AS builder
# Set working directory
WORKDIR /app
ARG VITE_BACKEND_DOMAIN
ARG VITE_INSTANCE_DOMAIN
ARG VITE_HTTPS
ENV VITE_BACKEND_DOMAIN $VITE_BACKEND_DOMAIN
ENV VITE_INSTANCE_DOMAIN $VITE_INSTANCE_DOMAIN
ENV VITE_HTTPS $VITE_HTTPS
# Copy all files from current directory to working dir in image
COPY . .
# install node modules and build assets

View file

@ -4,8 +4,9 @@ services:
build:
context: "../"
dockerfile: ./docker/Dockerfile
args :
- VITE_BACKEND_DOMAIN=localhost:7000
- VITE_INSTANCE_DOMAIN=localhost:80
- VITE_HTTPS=false
ports:
- "8080:80"
environment:
- VITE_BACKEND_URL=http://localhost:7000
- VITE_INSTANCE_URL=http://localhost:80