-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 1.16 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
# This Dockerfile is planned to be the base image for all data-processing etl jobs.
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
#### SET THE TIMEZONE TO "Europe/Zurich" ####
# Set environment variables for timezone and locale
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Zurich
ENV LANG=de_CH.UTF-8
ENV LANGUAGE=de_CH:de
ENV LC_ALL=de_CH.UTF-8
# Install required system packages
# Need to run apt-get update first. Otherwise, the installation of locales will fail.
# Need to run rm -rf /var/lib/apt/lists/* to clean up the package cache and reduce the image size.
RUN apt-get update && apt-get install -y --no-install-recommends \
locales \
tzdata \
&& rm -rf /var/lib/apt/lists/*
# Configure the system locale
RUN echo "de_CH.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen de_CH.UTF-8 && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=de_CH.UTF-8
# Set the timezone
RUN ln -fs /usr/share/zoneinfo/Europe/Zurich /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Set the working directory
WORKDIR /code
COPY . /code/
RUN pip install -r requirements.txt
CMD ["python3", "scripts/sync_org_structures.py"]