File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
ARG VARIANT="3.10-bullseye"
2
2
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} as devcontainer
3
3
4
+ ENV POETRY_VIRTUALENVS_IN_PROJECT 1
5
+
4
6
# Poetry
5
7
ARG POETRY_VERSION="1.7.1"
6
8
RUN if [ "${POETRY_VERSION}" != "none" ]; then su vscode -c "umask 0002 && pip3 install poetry==${POETRY_VERSION}" ; fi
7
9
8
- WORKDIR /openeo-fastapi
10
+ RUN apt update -qy && \
11
+ apt install -qy --no-install-recommends \
12
+ postgresql-13 \
13
+ git
14
+
15
+ WORKDIR /openeo-fastapi
Original file line number Diff line number Diff line change 7
7
8
8
"workspaceFolder" : " /openeo-fastapi" ,
9
9
10
- "settings" : {
11
- "python.defaultInterpreterPath" : " /openeo-fastapi/.venv" ,
12
- "python.venvPath" : " /openeo-fastapi/.venv" ,
13
- "python.pythonPath" : " /openeo-fastapi/.venv/bin/python" ,
14
- },
15
-
16
10
"extensions" : [
17
11
" ms-python.python" ,
18
12
" ms-toolsai.jupyter" ,
19
- " ms-python.vscode-pylance" ,
20
13
" eamodio.gitlens" ,
21
14
" GitLab.gitlab-workflow" ,
22
- " ms-azuretools.vscode-docker"
15
+ " ms-azuretools.vscode-docker" ,
16
+ " ms-python.vscode-pylance"
23
17
],
24
18
25
19
"remoteEnv" : {
Original file line number Diff line number Diff line change @@ -3,14 +3,11 @@ version: "3.8"
3
3
services :
4
4
workspace :
5
5
container_name : openeo-fastapi-devcontainer
6
- env_file :
7
- .env
8
6
9
7
build :
10
8
context : ../
11
9
dockerfile : " .devcontainer/Dockerfile"
12
10
target : devcontainer
13
11
volumes :
14
12
- ../:/openeo-fastapi
15
- - /eodc/:/eodc/
16
13
tty : true
You can’t perform that action at this time.
0 commit comments