-
Notifications
You must be signed in to change notification settings - Fork 272
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 817 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 817 Bytes
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
# Copyright (C) 2018 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the MIT license
# Base image
FROM python:2.7-stretch
# Start off with the most updated image possible
RUN apt-get update && apt-get --yes dist-upgrade
# Install non-PyPI dependencies
RUN apt-get update && apt-get install --no-install-recommends --yes -V \
gatling \
git
# Install app including dependencies, whitelist approach (size, anti-leak)
COPY docker-entrypoint.sh /root/pythonjobs/
COPY jobs/ /root/pythonjobs/jobs/
WORKDIR /root/pythonjobs
RUN git clone --depth 1 https://github.com/pythonjobs/template.git
RUN pip install -r template/requirements.txt
# Build website first time
RUN template/build.py /root/pythonjobs/
# Sync and serve website
EXPOSE 80
ENTRYPOINT ["/root/pythonjobs/docker-entrypoint.sh"]