-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.utils
59 lines (38 loc) · 1.47 KB
/
Dockerfile.utils
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
48
49
50
51
52
53
54
55
56
57
58
59
FROM python:3.10-slim
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Vienna
ENV PYPI_USERNAME=<PYPI_USERNAME>
ENV PYPI_PASSWORD=<PYPI_PASSWORD>
ENV GITHUB_GH_TOKEN=<GITHUB_GH_TOKEN>
RUN apt-get update -qq \
&& apt-get dist-upgrade -qq -y --no-install-recommends --fix-missing make tmux vim sed tree tk-dev curl sudo tzdata \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& apt-get clean \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install --upgrade pip && pip install twine
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install -y gh
WORKDIR /home/ondewo/
COPY Makefile .
COPY .flake8 .
COPY .pre-commit-config.yaml .
COPY CONTRIBUTING.md .
COPY LICENSE .
COPY MANIFEST.in .
COPY mypy.ini .
COPY examples .
COPY requirements.txt .
COPY setup.py .
COPY setup.cfg .
COPY README.md .
COPY RELEASE.md .
COPY ondewo ondewo
# run the container forever
CMD tail -f /dev/null