From f1509d0af1b6bcee6484f64132714e3ff2e2763a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Fri, 28 Jul 2023 11:38:34 +0200 Subject: [PATCH] chore: rename `docker-compose.yml` to `compose.yaml` Ref: https://docs.docker.com/compose/compose-file/03-compose-file/ --- .devcontainer/{docker-compose.yml => compose.yaml} | 0 .devcontainer/devcontainer.json | 2 +- Dockerfile | 1 + docker-compose.yml => compose.yaml | 3 +-- 4 files changed, 3 insertions(+), 3 deletions(-) rename .devcontainer/{docker-compose.yml => compose.yaml} (100%) rename docker-compose.yml => compose.yaml (82%) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/compose.yaml similarity index 100% rename from .devcontainer/docker-compose.yml rename to .devcontainer/compose.yaml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2541319..db0a8d3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "theoludwig", - "dockerComposeFile": "./docker-compose.yml", + "dockerComposeFile": "./compose.yaml", "service": "workspace", "workspaceFolder": "/workspace", "customizations": { diff --git a/Dockerfile b/Dockerfile index 3548d10..e8ed702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN npm clean-install FROM node:20.5.0 AS builder WORKDIR /usr/src/application COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules +COPY --from=builder-dependencies /usr/src/application/jsonresume-theme-custom/node_modules ./jsonresume-theme-custom/node_modules COPY ./ ./ RUN npm run build diff --git a/docker-compose.yml b/compose.yaml similarity index 82% rename from docker-compose.yml rename to compose.yaml index 99fb3bc..4b28001 100644 --- a/docker-compose.yml +++ b/compose.yaml @@ -5,8 +5,7 @@ services: restart: 'unless-stopped' build: context: './' - ports: - - '${PORT-3000}:${PORT-3000}' + network_mode: 'host' environment: PORT: ${PORT-3000} env_file: '.env'