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:
parent
68dd4eef64
commit
10c94c4c24
2 changed files with 12 additions and 4 deletions
|
@ -6,6 +6,13 @@
|
||||||
FROM node:16 AS builder
|
FROM node:16 AS builder
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
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 all files from current directory to working dir in image
|
||||||
COPY . .
|
COPY . .
|
||||||
# install node modules and build assets
|
# install node modules and build assets
|
||||||
|
|
|
@ -4,8 +4,9 @@ services:
|
||||||
build:
|
build:
|
||||||
context: "../"
|
context: "../"
|
||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
|
args :
|
||||||
|
- VITE_BACKEND_DOMAIN=localhost:7000
|
||||||
|
- VITE_INSTANCE_DOMAIN=localhost:80
|
||||||
|
- VITE_HTTPS=false
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
environment:
|
|
||||||
- VITE_BACKEND_URL=http://localhost:7000
|
|
||||||
- VITE_INSTANCE_URL=http://localhost:80
|
|
||||||
|
|
Loading…
Reference in a new issue