-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ghcr.io/thepalaceproject/circ-exec:main
# Need to be passed for using private PyPI repo
ARG PYPI_URL
ARG PYPI_USER
ARG PYPI_PASSWORD
ARG DEV=0
RUN apt update && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt install software-properties-common make gcc curl python3 python3-pip -y && \
python3 -m pip install pip
WORKDIR /circulation-import
COPY poetry.lock pyproject.toml Makefile README.md /circulation-import/
# Bug in poetry config
RUN mkdir -p ~/.config/pypoetry/ && \
# We want to copy our code at the last layer but not to break poetry's "packages" section
mkdir -p /circulation-import/src/circulation_import && \
touch /circulation-import/src/circulation_import/__init__.py
RUN make install BIN=/usr/local/bin/ DEV=$DEV
COPY . /circulation-import
ENTRYPOINT ["python3", "-m", "circulation_import"]