-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (44 loc) · 1.29 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
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:16.04
USER root
# python3.7 backports repo
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 6A755776
RUN echo 'deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main' > /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list
RUN apt-get update && apt-get install -y \
# core setup/debug packages (not needed for running app)
openssh-client \
apt-transport-https \
sudo \
curl \
vim \
# python & packages needed to install pip dependencies
python3.7-dev \
python3-pip \
build-essential \
git-core \
libffi-dev \
libxml2-dev \
libxslt1-dev \
# DB-related packages
mysql-client \
libmysqlclient-dev \
# farnsworth-specific packages
libssl-dev \
# packages needed for building/publishing deb installer
ruby-full
# Node 12 repo
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
# Yarn repo
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y \
nodejs \
yarn
# pipenv
RUN pip3 install pipenv
# build/publish deb installer
RUN gem install fpm deb-s3
RUN useradd -ms /bin/bash djuser
RUN echo "djuser:djuser" | chpasswd
RUN adduser djuser sudo
USER djuser
WORKDIR /home/djuser