-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (31 loc) · 1 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
FROM ubuntu:18.04
MAINTAINER Endormi
WORKDIR /usr/src/app
RUN apt update \
&& apt install -y python3 \
python3-pip \
git \
graphicsmagick \
sudo \
lsb-core \
ruby-full \
build-essential \
clang-format \
&& apt clean
# Streamline cloning
RUN git clone https://github.com/endormi/tilux.git .
ENV BUNDLER_VERSION=2.1.4
# Needed to get rid of "You must use Bundler 2 or greater with this lockfile" error
RUN gem sources -a https://rubygems.org
RUN gem install bundler -v $BUNDLER_VERSION
ENV GEM_HOME /usr/local/bundle
# You need to be root in order to run certain scripts
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# Will install required packages and give permission for scripts
# When installing Python packages, it will give a warning:
# Running pip as root will break packages and permissions.
# Since we're using a container, we don't need to worry about this.
RUN bash build y
# Keep the container running
CMD exec /bin/bash -c "sleep infinity & wait"