-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.12-bookworm
RUN --mount=source=requirements.txt,target=/mnt/requirements.txt,type=bind \
pip3 install -r /mnt/requirements.txt \
&& cd /tmp \
&& curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
&& curl -LO https://github.com/srl-labs/clabernetes/releases/latest/download/clabernetes_linux_x86_64.tar.gz \
&& tar -xzf clabernetes_linux_x86_64.tar.gz \
&& install -o root -g root -m 0755 clabverter /usr/local/bin/clabverter \
&& rm -rf /var/lib/apt/lists/* /tmp/*
WORKDIR /app
RUN --mount=source=.,target=/mnt,type=bind \
cd /mnt && cp -r apps dbinit.py docker-entrypoint.sh scripts run.py migrations /app/
EXPOSE 3000
ENTRYPOINT ["/app/docker-entrypoint.sh"]