-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 747 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
28
FROM metabrainz/python:3.6
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /code
WORKDIR /code
RUN pip3.6 install setuptools uwsgi
RUN mkdir /code/mayhem.cat
WORKDIR /code/mayhem.cat
COPY requirements.txt /code/mayhem.cat/
RUN pip3.6 install --no-cache-dir -r requirements.txt
RUN apt-get purge -y build-essential && \
apt-get autoremove -y && \
apt-get clean -y
# Now install our code, which may change frequently
COPY . /code/mayhem.cat/
CMD uwsgi --gid=www-data --uid=www-data --http-socket :3031 \
--vhost --module=server --callable=app --chdir=/code/mayhem.cat \
--enable-threads --processes=15