-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRockerfile
33 lines (24 loc) · 1.02 KB
/
Rockerfile
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
FROM python:{{ .PythonVersion }}
################################################################################
# Base system
################################################################################
MOUNT /root/.cache
MOUNT /var/cache/apt
MOUNT /var/lib/apt
ENV PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/usr/local \
PIP_INSTALL_OPTIONS="--src /usr/local/src"
RUN echo 'alias l="ls -lsah"' > ~/.bashrc \
&& mkdir -p /app/
WORKDIR /app
### DEPENDENCIES
RUN echo "Install base Debian dependencies..." \
&& apt-get -y update \
&& apt-get -y install apt-transport-https lsb-release vim git curl sudo libpq5 gnupg2 \
&& pip install --upgrade pip setuptools wheel virtualenv
RUN echo "Install NodeJS and YARN..." \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_{{ .NodeVersion }}.x | bash - \
&& apt-get install -y nodejs yarn
PUSH {{ .DockerImage }}