Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend #4

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] Dockerfile
FLOWleplusbeau authored and WilliamJlvt committed May 15, 2024
commit cb2b4a43acec639a949a995e91311b839d57f0ce
24 changes: 24 additions & 0 deletions front/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# docker-compose.yml

version: "3"

services:
external:
container_name: external
# The name of the image that will be created when building this container
image: external-website
build:
context: .
dockerfile: Dockerfile
user: "node"
environment:
# Internal server error messages will not send stacktrace to the browser in production
- NODE_ENV=production
# Sets the timezone of the containers OS
- TZ=Pacific/Auckland
# Points to a file with the sensitive environment variables
env_file:
- .env
restart: unless-stopped
ports:
- 3000:5050
1 change: 0 additions & 1 deletion front/dockerfile
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ RUN npm ci
COPY . .
RUN npm run build
RUN npm prune --production
RUN npm run preview

FROM node:18-alpine
WORKDIR /app
Loading