-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.ops
More file actions
42 lines (30 loc) · 1.05 KB
/
Dockerfile.ops
File metadata and controls
42 lines (30 loc) · 1.05 KB
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
35
36
37
38
39
40
41
42
# Install Python dependencies
FROM python:3.14-slim
# default VERSION is 0.0.0 if not passed at build time
ARG VERSION="0.0.0"
# make it available as an environment variable inside the container
ENV VERSION=$VERSION
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
bash \
&& rm -rf /var/lib/apt/lists/*
# Copy dbmate binary from dbmate base image
COPY --from=ghcr.io/amacneil/dbmate:main /usr/local/bin/dbmate /usr/local/bin/dbmate
WORKDIR /app
# Python files
COPY ./refiner/requirements-scripts.txt ./
RUN pip install --no-cache-dir -r requirements-scripts.txt
# Copy migration files
COPY ./refiner/migrations ./migrations
# Copy TES update files
COPY ./refiner/scripts/seeding ./scripts/seeding
COPY ./refiner/scripts/data/source-tes-groupers ./scripts/data/source-tes-groupers
# Copy entrypoint script
COPY ./ops/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
# Start this file, fall back to bash
ENTRYPOINT ["./entrypoint.sh"]
CMD ["bash"]