From be42d8e046890c24e2fa381da77f3093a120554a Mon Sep 17 00:00:00 2001 From: SafetyQuincyF Date: Wed, 16 Oct 2024 13:26:45 -0700 Subject: [PATCH] devcontainer fix --- .devcontainer/Dockerfile | 3 --- .devcontainer/devcontainer.json | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b2193dd6..cbb999ee 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -23,8 +23,5 @@ RUN apt-get update && \ # Copy project files into the container (relative to the build context) COPY . /app/ -# Expose port 49152 -EXPOSE 49152 - # Switch to the non-root user for security reasons USER appuser diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6cf68fb2..20c25d99 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,4 +15,5 @@ "postCreateCommand": "pip install -r test_requirements.txt && pip install ruff requests pre-commit", "remoteUser": "root", "workspaceFolder": "/workspaces/safety", + "forwardPorts": [49152] }