File tree Expand file tree Collapse file tree
{{ cookiecutter.__package_name_kebab_case }} Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ services:
33 # load environment variables from a dotenv file
44 # env_file: ".env"
55 build :
6- context : ../..
6+ context : ..
77 dockerfile : Dockerfile
88 # build to stage 'dev'
99 target : dev
@@ -13,8 +13,8 @@ services:
1313 volumes :
1414 # Mounts the project folder to '/workspace'. While this file is in .devcontainer,
1515 # mounts are relative to the first file in the list, which is a level up.
16- - ../../ :/workspace:cached
16+ - ../:/workspace:cached
1717 # Uncomment to run the container with GPU support
1818 # runtime: nvidia
1919 environment :
20- - NVIDIA_VISIBLE_DEVICES=all
20+ - NVIDIA_VISIBLE_DEVICES=all
Original file line number Diff line number Diff line change 22ARG FROM_IMAGE=debian:stable-slim
33FROM $FROM_IMAGE AS build
44
5- ARG PYTHON_VERSION={{cookiecutter.python_version}}
5+ ARG PYTHON_VERSION=3.11
66ARG POETRY_VERSION=1.8.0
77ENV DEBIAN_FRONTEND=noninteractive
88
9- LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}} >"
9+ LABEL maintainer="Dominik Falkner <falkner.dominik@gmail.com >"
1010
1111RUN apt-get update && apt-get install -yq \
1212 build-essential \
@@ -70,6 +70,8 @@ ADD . .
7070
7171FROM build AS dev
7272
73+ ENV POETRY_VIRTUALENVS_CREATE=false
74+
7375RUN eval "$(pyenv init -)" \
7476 # activate pyenv on shell start
7577 && pyenv init - > ~/.bashrc
@@ -81,4 +83,6 @@ RUN apt-get update --allow-insecure-repositories && apt-get install -yq \
8183 coreutils \
8284 # editor
8385 vim \
84- && rm -rf /var/lib/apt/lists/*
86+ && rm -rf /var/lib/apt/lists/*
87+
88+ ENTRYPOINT ["tail" , "-f" , "/dev/null" ]
You can’t perform that action at this time.
0 commit comments