-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
47 lines (40 loc) · 1.15 KB
/
Dockerfile
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
43
44
45
46
47
FROM ubuntu:jammy-20231004
ENV USER=root DEBIAN_FRONTEND=noninteractive
VOLUME ["/var/cache/apt/archives"]
RUN touch /.dockerenv
RUN apt-get update \
&& apt-get install --yes \
git \
language-pack-en \
language-pack-fi \
locales \
locales-all \
netcat \
sudo \
vim \
zsh \
&& echo '%sudo ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/sudo_nopasswd \
&& apt-get install --yes --no-install-recommends \
gdal-bin \
python3 \
python3-venv \
python3-tz \
python3-psycopg2
RUN dpkg-reconfigure locales
RUN useradd -m -u 1000 bew
RUN usermod -aG sudo -s /usr/bin/zsh bew
COPY zshrc /home/bew/.zshrc
RUN chown -R bew:bew /home/bew
USER bew
ENV USER=bew
ENV PYTHONDONTWRITEBYTECODE=1
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_CTYPE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
WORKDIR /home/bew/bew
COPY --chown=bew:bew . /home/bew/bew/
RUN python3.10 -m venv --system-site-packages /home/bew/.venv
RUN /home/bew/.venv/bin/pip3 install -r /home/bew/bew/requirements.txt
RUN /home/bew/.venv/bin/pip3 install -r /home/bew/bew/requirements-dev.txt
CMD /bin/zsh