generated from mysociety/python-data-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
16 lines (15 loc) · 1 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ghcr.io/mysociety/data_common:sha-d5aad46
# Make an empty project directory so the 'self' setup doesn't fail and scripts can be setup
# Override the .pth created at previous stages to point to where the working directory will land
COPY pyproject.toml poetry.loc[k] /setup/
COPY src/data_common/pyproject.toml src/data_common/poetry.loc[k] /setup/src/data_common/
RUN mkdir /setup/src/parl_register_interests \
&& touch /setup/src/parl_register_interests/__init__.py \
&& mkdir --parents /setup/src/data_common/src/data_common \
&& touch /setup/src/data_common/src/data_common/__init__.py \
&& export PATH="/root/.local/bin:$PATH" \
&& cd /setup/ && poetry install \
&& echo "/workspaces/parl_register_interests/src/" > /usr/local/lib/python3.10/site-packages/parl_register_interests.pth \
&& echo "/workspaces/parl_register_interests/src/data_common/src" > /usr/local/lib/python3.10/site-packages/data_common.pth
COPY script /setup/script
RUN chmod +x /setup/script/setup && /setup/script/setup