-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
38 lines (28 loc) · 946 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
FROM metabrainz/python:3.11-20231006
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
git \
libpq-dev \
libffi-dev \
libssl-dev \
sudo \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash art
WORKDIR /home/art/artwork-redirect
RUN chown art:art /home/art/artwork-redirect
# Python dependencies
RUN sudo -E -H -u art pip install --user -U cffi
COPY requirements.txt ./
RUN sudo -E -H -u art pip install --user -r requirements.txt
COPY . ./
RUN chown -R art:art ./
############
# Services #
############
COPY ./docker/prod/redirect.service /etc/service/redirect/run
COPY ./docker/prod/uwsgi.ini /etc/uwsgi/
RUN chmod 755 /etc/service/redirect/run
# Configuration
COPY ./docker/prod/consul-template-redirect.conf /etc/
EXPOSE 8080