forked from gotthardp/lorawan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 753 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
30
31
# Build container
FROM erlang:21-alpine AS scratch
MAINTAINER Petr Gotthard <petr.gotthard@centrum.cz>
RUN apk add --no-cache --virtual build-deps git make wget nodejs-npm && \
git clone https://github.com/gotthardp/lorawan-server.git && \
cd lorawan-server && \
make release
# Deployment container
FROM erlang:21-alpine
## Not likely to change with rebuilds
# data from port_forwarders
EXPOSE 1730/udp
# http admin interface
EXPOSE 8080/tcp
# https admin interface
EXPOSE 8443/tcp
# volume for the mnesia database and logs
VOLUME /storage
ENV LORAWAN_HOME=/storage
# Base directory
WORKDIR /usr/lib/lorawan-server
CMD bin/lorawan-server
## Changes with every rebuild
COPY --from=scratch /lorawan-server/_build/default/rel/ /usr/lib/