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] }