diff --git a/Dockerfile b/Dockerfile index 712c3e6..f32490b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ WORKDIR /app # Copy project files COPY ./latosa-frontend/ . +RUN deno install + # Install Next.js dependencies RUN deno task build diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..67ecbfe --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +services: + latosa-escrima: + build: + context: . + dockerfile: Dockerfile + ports: + - "3000:3000" + environment: + - NODE_ENV=production + restart: always # Ensures the container restarts on failure or Docker restart diff --git a/latosa-frontend/docker-compose.yaml b/latosa-frontend/docker-compose.yaml new file mode 100644 index 0000000..4174933 --- /dev/null +++ b/latosa-frontend/docker-compose.yaml @@ -0,0 +1,10 @@ +services: + latosa-escrima.fr: + build: + context: . + dockerfile: Dockerfile + ports: + - "3000:3000" + environment: + - NODE_ENV=production + restart: always # Ensures the container restarts on failure or Docker restart