-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-Template
58 lines (45 loc) · 1.55 KB
/
Dockerfile-Template
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
55
56
57
58
# Set the base image to ubuntu:xx.xx
FROM ubuntu:20.04
# File Author / Maintainer
LABEL maintainer="Angela Murrell <[email protected]>"
# Important for automated runs
ENV DEBIAN_FRONTEND=noninteractive
# Basic packages and tools - for cloud servers, do not depend on these being available.
RUN apt-get update && \
apt-get install -y nano && \
apt-get install -y curl && \
apt-get install -y sudo && \
apt-get install -y wget && \
apt-get install -y git && \
apt-get install -y unzip && \
apt-get install -y ruby-full && \
apt-get install -y ufw && \
apt-get install -y apt-utils && \
apt-get install -y software-properties-common && \
apt-get install -y apt-transport-https && \
apt-get install -y openssh-client && \
apt-get -y --no-install-recommends install apt-utils && \
apt-get -y install freetds-bin tdsodbc unixodbc unixodbc-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install more stuff
RUN apt-get update && \
apt-get -y install libcurl3-openssl-dev && \
apt-get -y install libyaml-dev
# export var for nano to work in command line
ENV TERM xterm
# Set workdir
WORKDIR /var/www/
# SSH
RUN mkdir /root/.ssh
# Add site directory
RUN mkdir /var/www/simple-docker
# Add all the files
ADD ./pre-run/ /var/www/simple-docker/pre-run/
# Append source brc alias to the bashrc profile file
RUN echo 'alias brc="source /root/.bashrc"' >> /root/.bashrc
# Adjust www-data
RUN usermod -u 1000 www-data
# Run the pre-run-wrapper
RUN ./simple-docker/pre-run/pre-run-wrapper
CMD sleep infinity