-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.wsget
35 lines (30 loc) · 1.2 KB
/
Dockerfile.wsget
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
# ------------------------------------------------------------------------------
# Install build tools and compile the code
FROM ubuntu:focal AS build
ADD src /src
WORKDIR /src
RUN apt-get update && \
apt-get install -y build-essential \
libcurl4-gnutls-dev libgcrypt20-dev && \
./compile_clients.sh
# ------------------------------------------------------------------------------
# Pull base image
FROM ubuntu:focal
MAINTAINER Brett Kuskie <[email protected]>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
# ------------------------------------------------------------------------------
# Install libraries and clean up
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libcurl3-gnutls libgcrypt20 ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# ------------------------------------------------------------------------------
# Install scripts and binaries
COPY app/app.wsget.sh /app/app.sh
COPY --from=build /src/ws_get.exe /app/
# ------------------------------------------------------------------------------
# Define default command
CMD ["/app/app.sh"]