Should be fixed now I think

This commit is contained in:
2025-12-18 17:37:54 +00:00
parent a30d35f4da
commit 170cd7921c
5 changed files with 16 additions and 18 deletions

View File

@@ -1,8 +1,12 @@
LICENSE .env
README.md .env.*
node_modules
.env.example .env.example
.git .git
.gitignore .gitignore
docker/** dist
scripts/** docker/Dockerfile
docker/compose.yml
LICENSE
node_modules
npm-debug.log
README.md

View File

@@ -1,5 +1,5 @@
# All environment variables must be prefixed with VITE_ to be seen by client.
# All environment variables must be prefixed with VITE_ to be seen by client.
# Self-hosted Services URLs. Do not include the trailing slash. # Self-hosted Services URLs. Do not include the trailing slash.
VITE_BANG_URL="https://bang." VITE_BANG_URL="https://bang."
VITE_GITEA_URL="https://git." VITE_GITEA_URL="https://git."

View File

@@ -1,3 +0,0 @@
PORT=5000
DOMAIN=bang.mydomain.com
NETWORK=bridge

View File

@@ -24,10 +24,10 @@ WORKDIR /app
RUN npm install -g serve RUN npm install -g serve
# Copy built assets from the builder stage # Copy built assets from the builder stage
COPY --from=builder /app/dist ./ COPY --from=builder /app/dist ./dist
# Expose port 5000 for the server # Expose port 5000 for the server
EXPOSE 5000 EXPOSE 5000
# Start the server using the `serve` package # Start the server using the `serve` package
CMD ["serve", "-s", ".", "-l", "5000"] CMD ["serve", "-s", "dist", "-l", "5000"]

View File

@@ -1,7 +1,6 @@
networks: networks:
nginx-bridge: nginx-bridge:
external: true external: true
services: services:
bang: bang:
build: build:
@@ -9,13 +8,11 @@ services:
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
image: gib/bang:latest image: gib/bang:latest
container_name: bang container_name: bang
env_file: [.env] env_file: [../.env]
hostname: bang hostname: bang
domainname: ${DOMAIN} domainname: ${VITE_BANG_URL}
networks: ['${NETWORK}'] networks: [nginx-bridge]
#ports: ['5000:5000']
stdin_open: true stdin_open: true
tty: true tty: true
restart: unless-stopped restart: unless-stopped
#volumes: ['.:/app'] command: ['serve', '-s', 'dist', '-l', '5000']
command: serve -s /app/dist -l 5000