mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-22 17:35:39 +00:00
Creating Dockerfile to /contrib/docker/
- Multiple architectures supported by using Golang's official Debian Stretch image. - Upgrading os to latest updates - Adding all files to image - Creating user for yggdrasil (kinda unused) - Building from source code
This commit is contained in:
parent
8ade7aed62
commit
8b7b3452cf
18
contrib/docker/Dockerfile
Normal file
18
contrib/docker/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM golang:stretch
|
||||
MAINTAINER Christer Waren/CWINFO "christer.waren@cwinfo.org"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y
|
||||
|
||||
ADD . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN adduser --system --home /etc/yggdrasil-network --uid 1000 yggdrasil-network \
|
||||
&& rm -rf build_* && ./build \
|
||||
&& cp yggdrasil /usr/bin \
|
||||
&& cp contrib/docker/entrypoint.sh /
|
||||
|
||||
VOLUME [ "/etc/yggdrasil-network" ]
|
||||
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
Loading…
Reference in New Issue
Block a user