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'