forked from AnikaLegal/clerk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.base
47 lines (41 loc) · 1.21 KB
/
Dockerfile.base
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
44
45
46
47
# Clerk base image - all the stuff we don't want to bother rebuilding every few days
FROM ubuntu:bionic
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
ENV PYTHONIOENCODING UTF-8
ENV TIMEZONE Australia/Melbourne
WORKDIR /app
# Install stuff we need to setup NodeJS and Yarn
RUN \
echo "Updating apt sources and installing curl." && \
apt-get -qq update && \
apt-get -qq install \
curl \
gnupg2
# NodeJS 11 setup
RUN \
echo "Preparing to install NodeJS." && \
curl -sL https://deb.nodesource.com/setup_11.x | bash -
# Yarn setup
RUN \
echo "Preparing to install 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
# Install required packages
RUN \
echo "Updating apt sources." && \
apt-get -qq update && \
echo "Installing required packages." && \
apt-get -qq install \
python3 \
python3-setuptools \
python3-dev \
python3-pip \
postgresql-client \
postgresql-common \
iputils-ping \
nodejs \
build-essential \
yarn