-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
40 lines (31 loc) · 1001 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
FROM ubuntu:latest
LABEL maintainer="[email protected]"
# Install tools required by the build.sh script
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libsystemd-dev \
libpython3-dev \
python3-pip \
docker.io \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install Murdock dependencies
COPY requirements.txt /tmp/requirements.txt
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
# No need to keep these around
RUN apt purge -y --auto-remove \
build-essential \
libsystemd-dev \
libpython3-dev
RUN mkdir -p /var/lib/{murdock,murdock-data}
ARG UID=1000
ARG GID=1000
RUN groupadd --gid ${GID} murdock
RUN useradd --home-dir /var/lib/murdock --shell /bin/bash --uid ${UID} --gid ${GID} murdock
USER murdock
WORKDIR /var/lib/murdock
EXPOSE 8000
ENTRYPOINT ["./murdock.py"]