forked from City-of-Helsinki/digihel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 1.01 KB
/
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
41
42
43
# Pull base image
FROM helsinkitest/python-node:3.6-slim
# Set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install packages
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
jpeg-dev \
gettext \
build-essential \
git \
libxslt-dev \
zlib-dev \
libpq-dev
# Set work directory
WORKDIR /code
# Install dependencies
COPY requirements.txt .
RUN git config --global http.postBuffer 524288000 \
&& pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt --src /usr/local/src \
&& npm install \
# && yarn cache clean \
&& npm install -g coffee-script@^1.12.6
&& apt-get remove -y build-essential \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives
COPY package.json .
RUN npm install
RUN npm install -g coffee-script@^1.12.6
# Copy project
COPY . /code/
# Entrypoint
ENTRYPOINT ["sh", "./docker-entrypoint.sh"]