-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.webstore
43 lines (36 loc) · 1.4 KB
/
Dockerfile.webstore
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
# ------------------------------------------------------------------------------
# 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 \
libmicrohttpd-dev libhiredis-dev && \
./compile_server.sh
# ------------------------------------------------------------------------------
# Pull base image
FROM ubuntu:focal
MAINTAINER Brett Kuskie <fullaxx@gmail.com>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
# ------------------------------------------------------------------------------
# Install libraries and clean up
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libmicrohttpd12 libhiredis0.14 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# ------------------------------------------------------------------------------
# Install scripts and binaries
COPY app/app.webstore.sh /app/app.sh
COPY --from=build /src/webstore.exe /app/
# ------------------------------------------------------------------------------
# Add volumes
VOLUME /log
# ------------------------------------------------------------------------------
# Expose ports
EXPOSE 8080
# ------------------------------------------------------------------------------
# Define default command
CMD ["/app/app.sh"]