-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
63 lines (47 loc) · 1.08 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
63
FROM java:8
MAINTAINER SwellRT Community <[email protected]>
# SwellRT port
EXPOSE 9898
# JVM Remote Monitoring
EXPOSE 5000
ENV home /usr/local/swellrt/
RUN adduser --system --home $home swellrt \
&& addgroup --system swellrt
WORKDIR $home
# Create all possible folders used in SwellRT server
# Actually most of them are not used as long as MongoDB is
# the default storage but this way is more robust.
RUN mkdir config \
logs \
sessions \
avatars \
attachments \
certificates \
accounts \
deltas \
indexes
# Add config files
ADD wave/config $home/config/
# Add some scripts
ADD scripts/docker/home/* $home/
# Add static resources
ADD wave/war $home/war/
# Add static resources
ADD wave/webapp $home/webapp/
# Add runtime
ADD wave/build/libs/swellrt.jar $home/swellrt.jar
# Set permissions
RUN chown -R swellrt:swellrt $home
# All folders can be exported
VOLUME $home/config \
$home/logs \
$home/sessions \
$home/avatars \
$home/attachments \
$home/certificates \
$home/accounts \
$home/deltas \
$home/indexes \
$home/webapp
USER swellrt
ENTRYPOINT ["./server.sh"]