i guess I added dockerignore after?
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
|
||||||
.env.example
|
.env.example
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Stage 1: Build the project
|
# Stage 1: Build the project
|
||||||
FROM node:18 AS builder
|
FROM node:20 AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and pnpm-lock.yaml to the working directory
|
# Copy package.json and pnpm-lock.yaml to the working directory
|
||||||
@@ -17,7 +17,7 @@ COPY . .
|
|||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
# Stage 2: Serve the app using the same version of Node
|
# Stage 2: Serve the app using the same version of Node
|
||||||
FROM node:18-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install a simple http server
|
# Install a simple http server
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ services:
|
|||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
image: gib/bang:latest
|
image: gib/bang:latest
|
||||||
container_name: bang
|
container_name: bang
|
||||||
|
env_file: [.env]
|
||||||
hostname: bang
|
hostname: bang
|
||||||
domainname: bang.gbrown.org
|
domainname: ${DOMAIN}
|
||||||
networks:
|
networks: ['${NETWORK}']
|
||||||
- nginx-bridge
|
|
||||||
#ports: ['5000:5000']
|
#ports: ['5000:5000']
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
#volumes: ['.:/app']
|
||||||
- ../:/app
|
|
||||||
command: serve -s /app/dist -l 5000
|
command: serve -s /app/dist -l 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user