Skip to content

Commit a82a19d

Browse files
author
Dominik Falkner
committed
Update 2 files
- /{{ cookiecutter.__package_name_kebab_case }}/Dockerfile - /{{ cookiecutter.__package_name_kebab_case }}/.devcontainer/docker-compose.yml
1 parent e91ecd7 commit a82a19d

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎{{ cookiecutter.__package_name_kebab_case }}/.devcontainer/docker-compose.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
ARG FROM_IMAGE=debian:stable-slim
33
FROM $FROM_IMAGE AS build
44

5-
ARG PYTHON_VERSION={{cookiecutter.python_version}}
5+
ARG PYTHON_VERSION=3.11
66
ARG POETRY_VERSION=1.8.0
77
ENV DEBIAN_FRONTEND=noninteractive
88

9-
LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
9+
LABEL maintainer="Dominik Falkner <falkner.dominik@gmail.com>"
1010

1111
RUN apt-get update && apt-get install -yq \
1212
build-essential \
@@ -70,6 +70,8 @@ ADD . .
7070

7171
FROM build AS dev
7272

73+
ENV POETRY_VIRTUALENVS_CREATE=false
74+
7375
RUN 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"]

0 commit comments

Comments
 (0)