-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (33 loc) · 880 Bytes
/
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
ARG PYTHON_VERSION=3.10
FROM docker.io/pierrezemb/gostatic:latest as gostatic-plus
ENTRYPOINT ["/goStatic"]
FROM python:${PYTHON_VERSION}
RUN cd /opt \
&& curl https://downloads.python.org/pypy/pypy3.9-v7.3.9-linux64.tar.bz2 \
| tar -jx && ./pypy3.9-v7.3.9-linux64/bin/pypy3 -m venv pypy39
COPY --from=gostatic-plus /goStatic /goStatic
COPY hivemind /
COPY jpatchset /
RUN apt-get update && apt-get install -y \
openssh-server \
less \
vim \
sqlite3 \
python3-pip \
python3-venv \
python3-dev \
python3-setuptools \
python3-wheel \
mercurial
COPY Procfile /
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt \
&& /opt/pypy39/bin/pypy3 -m pip install -r requirements.txt
# goStatic directory
RUN ln -sf /data/http /srv/http
COPY app .
EXPOSE 8080
WORKDIR /
CMD ["/hivemind"]