-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 900 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 900 Bytes
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
# Builds a docker image for a darkstat
FROM phusion/baseimage:0.9.18
MAINTAINER Mace Capri <[email protected]>
###############################################
## ENVIRONMENTAL CONFIG ##
###############################################
# Set correct environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV HOME="/root" LC_ALL="C.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8"
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
###############################################
## INTALL ENVIORMENT, INSTALL OPENVPN ##
###############################################
COPY install.sh /tmp/
ADD /files/ /files/
RUN chmod +x /tmp/install.sh && sleep 1 && /tmp/install.sh && rm /tmp/install.sh
###############################################
## PORTS AND VOLUMES ##
###############################################
VOLUME ["/config"]