-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (41 loc) · 1.09 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
48
49
50
51
52
# IU7Games Environment
FROM python:3.8-alpine
LABEL maintainer="IU7OG"
ENV PYTHONBUFFERED 1
ENV PATH $PATH:/scripts
RUN apk add --no-cache \
bash \
linux-headers \
g++ \
tzdata \
perl-io-gzip \
perl-json \
git \
make \
valgrind \
\
&& cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
&& echo "Europe/Moscow" > /etc/timezone
RUN git clone https://github.com/linux-test-project/lcov \
&& cd lcov/ \
&& make install \
&& cd .. \
&& rm -rf lcov/
RUN apk add --no-cache --virtual .tmp-build-deps \
snappy snappy-dev krb5-dev
COPY cfg/image_cfg/requirements.txt /requirements.txt
RUN python -m pip install -r requirements.txt
RUN apk del .tmp-build-deps
COPY cfg/image_cfg/scripts /scripts
COPY cfg/image_cfg/libs/* /usr/lib/
COPY cfg/image_cfg/c_samples /c_samples
COPY cfg/image_cfg/pylintrc /pylintrc
COPY database/ /database
COPY games/ /games
RUN mkdir /sandbox \
&& chmod -R o+w /sandbox
RUN adduser -D -h /deathstar imperialclone \
&& chmod -R o+x /scripts \
&& chmod -R o+x /games
WORKDIR /deathstar
USER imperialclone