-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 721 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
FROM python:3.7-slim
# Setting up environment
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 PYTHONUNBUFFERED=1
WORKDIR /app
# Install dependencies
RUN apt-get update -qy \
&& apt-get install -qy --no-install-recommends \
git-core \
libpq-dev \
make \
automake \
gcc \
g++ \
subversion \
python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install python dependencies
COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt
RUN touch /app/.env
# Copy application code
COPY codefrog codefrog
COPY docker-entrypoint.sh docker-entrypoint.sh
WORKDIR /app/codefrog/
ENTRYPOINT ["/app/docker-entrypoint.sh"]