-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.server
More file actions
34 lines (21 loc) · 823 Bytes
/
Dockerfile.server
File metadata and controls
34 lines (21 loc) · 823 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
28
29
30
31
32
33
34
FROM python:3.13.7-slim
ENV PYTHONPATH="${PYTHONPATH}:/app/scripts/" \
PYTHONDONTWRITEBYTECODE=1
EXPOSE 4200
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 -s /bin/bash prefect
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-root
COPY entrypoint.sh /app/
RUN chmod +x /app/entrypoint.sh
COPY scripts ./scripts
COPY resources ./resources
RUN chown -R prefect:prefect /app
WORKDIR /app/scripts
USER prefect
LABEL org.opencontainers.image.source="https://github.com/odissei-data/ingestion-workflow-orchestrator"
LABEL org.opencontainers.image.description="Prefect server for the ODISSEI ingestion workflow orchestrator."
ENTRYPOINT ["/app/entrypoint.sh"]