Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 571c581

Browse files
committed
Don't use dockerfile for devcontainer
1 parent 187a4b2 commit 571c581

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.devcontainer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json
22
{
33
"name": "Python 3 Developer Container",
4-
"build": {
5-
"dockerfile": "Dockerfile",
6-
"target": "build",
7-
"context": ".",
8-
"args": {}
9-
},
4+
"image": "python:3.11",
105
"remoteEnv": {
116
"DISPLAY": "${localEnv:DISPLAY}"
127
},

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# This file is for use as a devcontainer and a runtime container
2-
#
3-
# The devcontainer should use the build target and run as root with podman
4-
# or docker with user namespaces.
5-
#
1+
# This file is for use as a runtime container only, it depends on dist/
2+
# and lockfiles being made outside the container
63
FROM python:3.11 as build
74

85
# Add any system dependencies for the developer/build environment here e.g.
@@ -11,8 +8,7 @@ FROM python:3.11 as build
118
# desired-packages \
129
# && rm -rf /var/lib/apt/lists/*
1310

14-
COPY dist /project/dist
15-
COPY lockfiles /project/lockfiles
11+
COPY . /project
1612
WORKDIR /project
1713

1814
# set up a virtual environment and put it in PATH

0 commit comments

Comments
 (0)