Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
# Install OpenVPN and Easy-RSA
|
4 |
RUN apt-get update && \
|
@@ -6,11 +7,12 @@ RUN apt-get update && \
|
|
6 |
rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
# Set up configuration files and keys
|
9 |
-
COPY
|
10 |
|
11 |
# Initialize Easy-RSA PKI
|
12 |
RUN make-cadir /etc/openvpn/vars && \
|
13 |
cd /etc/openvpn/vars && \
|
|
|
14 |
./clean-all && \
|
15 |
./build-ca --batch && \
|
16 |
./build-key-server --batch server && \
|
|
|
1 |
+
# Use the specified Debian image
|
2 |
+
FROM docker.io/library/debian:stable-slim@sha256:d10f0545d14bad5f4d230301f7e4fd904384f2dd16fda16d708f936c2fa1db3e
|
3 |
|
4 |
# Install OpenVPN and Easy-RSA
|
5 |
RUN apt-get update && \
|
|
|
7 |
rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
# Set up configuration files and keys
|
10 |
+
COPY openvpn-server.conf /etc/openvpn/server.conf
|
11 |
|
12 |
# Initialize Easy-RSA PKI
|
13 |
RUN make-cadir /etc/openvpn/vars && \
|
14 |
cd /etc/openvpn/vars && \
|
15 |
+
. ./vars && \
|
16 |
./clean-all && \
|
17 |
./build-ca --batch && \
|
18 |
./build-key-server --batch server && \
|