-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 748 Bytes
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
FROM node:12-alpine
LABEL version "2.8.1"
LABEL description "Arena web GUI in an alpine based docker image."
ENV VERSION 2.8.1
RUN mkdir -p /home/arena && \
addgroup -S arena && \
adduser -S -G arena arena && \
apk add --no-cache ca-certificates wget && \
cd /tmp && \
wget https://github.com/bee-queue/arena/archive/v${VERSION}.tar.gz && \
tar xfz v${VERSION}.tar.gz && \
mv arena-${VERSION} /opt/arena && \
rm -fr /tmp/*.tar.gz
WORKDIR /opt/arena
RUN yarn --production && \
chown -R arena:arena /opt/arena && \
apk del wget ca-certificates && \
rm -rf /usr/include /etc/ssl /usr/share/man \
/usr/local/share/.cache/yarn /tmp/* /var/cache/apk/*
USER arena
EXPOSE 4567
CMD ["yarn", "start"]