This repository was archived by the owner on Oct 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (36 loc) · 1.31 KB
/
Copy pathDockerfile
File metadata and controls
45 lines (36 loc) · 1.31 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
43
44
45
FROM python:3.6.8-alpine3.8
MAINTAINER Vyacheslav Voronenko <git@voronenko.info>
env USER_ID 1000 # to correctly remap user rights
env GROUP_ID 1000 # to correctly remap user rights
# Graphviz
RUN mkdir /graphviz && \
apk add --update graphviz && \
rm -rf /var/cache/apk/*
# PlantUML
RUN apk add --update curl && \
mkdir -p /opt/plantuml/ && \
curl -L https://sourceforge.net/projects/plantuml/files/plantuml.jar/download > /opt/plantuml/plantuml.jar && \
rm -rf /var/cache/apk/*
COPY docker/plantuml /usr/bin/plantuml
RUN chmod +x /usr/bin/plantuml
# Sphinx
COPY requirements.txt /requirements.txt
RUN apk add --no-cache zlib-dev && \
apk add --no-cache g++ && \
apk add --no-cache libjpeg-turbo-dev && \
apk add --no-cache musl-dev && \
pip3 install -r /requirements.txt && \
rm -r /root/.cache
#RUN apk add --no-cache python3 && \
# apk add --no-cache build-base && \
# apk add --no-cache python-dev && \
# apk add --no-cache git && \
# apk add --no-cache zlib-dev && \
# apk add --no-cache g++ && \
# apk add --no-cache libjpeg-turbo-dev && \
# apk add --no-cache musl-dev && \
# apk add --update bash && \
# python3 -m ensurepip && \
# rm -r /usr/lib/python*/ensurepip && \
# pip3 install -r /requirements.txt && \
# rm -r /root/.cache