-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
62 lines (52 loc) · 2.1 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM guacamole/guacd:1.5.4
USER root
RUN apk update && apk add --no-cache \
pulseaudio \
supervisor \
nodejs npm && \
sed -i \
-e 's|#load-module module-native-protocol-tcp|load-module module-native-protocol-tcp auth-anonymous=1|g' \
/etc/pulse/default.pa
# Arguments to label built container
ARG GIT_SHA
ARG GIT_TAG=1.0.0
# Container labels (http://label-schema.org/)
# Container annotations (https://github.com/opencontainers/image-spec)
LABEL maintainer="Daniel McAssey <hello at glokon dot me>" \
product="Apache Guacamole WebSocket Server" \
version=$GIT_TAG \
org.label-schema.vcs-ref=$GIT_SHA \
org.label-schema.vcs-url="https://github.com/GLOKON/guacws" \
org.label-schema.name="Apache Guacamole Server" \
org.label-schema.description="Guacamole proxy daemon." \
org.label-schema.url="https://guacamole.apache.org/" \
org.label-schema.vendor="Apache" \
org.label-schema.version=$GIT_TAG \
org.label-schema.schema-version="1.0" \
org.opencontainers.image.revision=$GIT_SHA \
org.opencontainers.image.source="https://github.com/GLOKON/guacws" \
org.opencontainers.image.title="Apache Guacamole Server" \
org.opencontainers.image.description="Guacamole proxy daemon." \
org.opencontainers.image.url="https://guacamole.apache.org/" \
org.opencontainers.image.vendor="Apache" \
org.opencontainers.image.version=$GIT_TAG \
org.opencontainers.image.authors="Daniel McAssey <hello at glokon dot me>"
ENV GUACD_HOST=127.0.0.1
ENV GUACD_PORT=4822
ENV CRYPT_CYPHER='AES-256-CBC'
ENV LOG_LEVEL='info'
ENV USER_DRIVE_ROOT='/user-drives'
ENV SSL_CERT_PATH='/app/certificate.pem'
ENV SSL_KEY_PATH='/app/certificate-key.pem'
EXPOSE 8080
RUN mkdir -p /user-drives && chown -R guacd:guacd /user-drives
# Specity user drive volume
VOLUME /user-drives
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
CMD [ "supervisord", "-c", "supervisor.conf"]