-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (33 loc) · 1015 Bytes
/
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
#
# libsodium Dockerfile
#
#
# Pull base image.
FROM ubuntu:18.04
MAINTAINER Jon Reckner <[email protected]>
# Define Libsodium version
ENV LIBSODIUM_VERSION 1.0.18
# Define workdir
WORKDIR /root
# Install some tools: gcc build tools, unzip, etc
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get -y install curl build-essential unzip locate
# Download and install libsodium
# https://download.libsodium.org/doc/
# Download & extract & make libsodium
# Move libsodium build
RUN \
mkdir -p /tmpbuild/libsodium && \
cd /tmpbuild/libsodium && \
curl -L https://download.libsodium.org/libsodium/releases/libsodium-${LIBSODIUM_VERSION}.tar.gz -o libsodium-${LIBSODIUM_VERSION}.tar.gz && \
tar xfvz libsodium-${LIBSODIUM_VERSION}.tar.gz && \
cd /tmpbuild/libsodium/libsodium-${LIBSODIUM_VERSION}/ && \
./configure && \
make && make check && \
make install && \
mv src/libsodium /usr/local/ && \
rm -Rf /tmpbuild/
# Define default command
CMD ["bash"]