Skip to content

Commit

Permalink
modify dockerfile and start.sh so that the env vars are properly conf…
Browse files Browse the repository at this point in the history
…igured
  • Loading branch information
dreth committed Jul 27, 2024
1 parent c0927f3 commit f6019f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ COPY frontend/ ./frontend
# Copy the backend code into the container.
COPY backend/ ./backend

# Build the Next.js app
RUN cd frontend && npm run build

# Install additional tools
RUN apk add --no-cache tzdata sqlite sqlite-dev ca-certificates bash gcc

Expand Down
5 changes: 3 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ if [ ! -f hbd.db ]; then
fi

# Start the Go API server
./main &
/app/backend/main &

# Start the Next.js server
cd ../frontend
# Build the frontend and run it
cd /app/frontend && npm run build
npm run start -- --port $PORT --hostname 0.0.0.0

0 comments on commit f6019f6

Please sign in to comment.