Migrate Dockerfile from Alpine to Ubuntu
This commit is contained in:
parent
c6263a25fd
commit
91ac84e72f
33
Dockerfile
33
Dockerfile
@ -23,26 +23,26 @@
|
|||||||
|
|
||||||
# The Alpine Linux image that should be used as the basis for the guacd image
|
# The Alpine Linux image that should be used as the basis for the guacd image
|
||||||
ARG ALPINE_BASE_IMAGE=latest
|
ARG ALPINE_BASE_IMAGE=latest
|
||||||
FROM alpine:${ALPINE_BASE_IMAGE} AS builder
|
FROM ubuntu AS builder
|
||||||
|
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
RUN apk add --no-cache \
|
RUN apt update && apt install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-base \
|
gcc g++ \
|
||||||
cairo-dev \
|
libcairo2-dev \
|
||||||
cmake \
|
cmake \
|
||||||
git \
|
git \
|
||||||
grep \
|
grep \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo8-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libwebp-dev \
|
libwebp-dev \
|
||||||
make \
|
make \
|
||||||
openssl-dev \
|
libssl-dev \
|
||||||
pango-dev \
|
libpango1.0-dev \
|
||||||
pulseaudio-dev \
|
libpulse-dev \
|
||||||
util-linux-dev
|
libspice-client-glib-2.0-dev
|
||||||
|
|
||||||
# Copy source to container for sake of build
|
# Copy source to container for sake of build
|
||||||
ARG BUILD_DIR=/tmp/guacamole-server
|
ARG BUILD_DIR=/tmp/guacamole-server
|
||||||
@ -146,7 +146,7 @@ RUN ${BUILD_DIR}/src/guacd-docker/bin/list-dependencies.sh \
|
|||||||
> ${PREFIX_DIR}/DEPENDENCIES
|
> ${PREFIX_DIR}/DEPENDENCIES
|
||||||
|
|
||||||
# Use same Alpine version as the base for the runtime image
|
# Use same Alpine version as the base for the runtime image
|
||||||
FROM alpine:${ALPINE_BASE_IMAGE}
|
FROM ubuntu
|
||||||
|
|
||||||
#
|
#
|
||||||
# Base directory for installed build artifacts. See also the
|
# Base directory for installed build artifacts. See also the
|
||||||
@ -166,16 +166,15 @@ ENV GUACD_LOG_LEVEL=info
|
|||||||
COPY --from=builder ${PREFIX_DIR} ${PREFIX_DIR}
|
COPY --from=builder ${PREFIX_DIR} ${PREFIX_DIR}
|
||||||
|
|
||||||
# Bring runtime environment up to date and install runtime dependencies
|
# Bring runtime environment up to date and install runtime dependencies
|
||||||
RUN apk add --no-cache \
|
RUN apt update && apt install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
shadow \
|
fonts-terminus \
|
||||||
terminus-font \
|
fonts-dejavu \
|
||||||
ttf-dejavu \
|
fonts-liberation \
|
||||||
ttf-liberation \
|
libcairo2 \
|
||||||
util-linux-login && \
|
libspice-client-glib-2.0-8
|
||||||
xargs apk add --no-cache < ${PREFIX_DIR}/DEPENDENCIES
|
|
||||||
|
|
||||||
# Checks the operating status every 5 minutes with a timeout of 5 seconds
|
# Checks the operating status every 5 minutes with a timeout of 5 seconds
|
||||||
HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1
|
HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user