You've already forked nyx
mirror of
https://github.com/rls-moe/nyx
synced 2025-08-19 06:18:38 +00:00
implemented Docker, added default configuration
This commit is contained in:
36
Dockerfile
Normal file
36
Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
FROM golang:1.14-buster AS build-env
|
||||
|
||||
COPY . ${GOPATH}/src/github.com/rls-moe/nyx
|
||||
WORKDIR ${GOPATH}/src/github.com/rls-moe/nyx
|
||||
|
||||
RUN go build -o $GOPATH/bin/nyx
|
||||
|
||||
FROM debian:bullseye
|
||||
LABEL maintainer="b.pedini@bjphoster.com"
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
RUN groupadd \
|
||||
--gid 1000 \
|
||||
nyx && \
|
||||
useradd \
|
||||
--home-dir /opt/nyx \
|
||||
--comment "Nyx Board" \
|
||||
--gid nyx \
|
||||
--create-home \
|
||||
--no-user-group \
|
||||
--uid 1000 \
|
||||
--shell /bin/bash \
|
||||
nyx
|
||||
|
||||
ENV USER nyx
|
||||
|
||||
CMD [ "/usr/local/bin/nyx" ]
|
||||
|
||||
COPY --from=build-env /go/bin/nyx /opt/nyx/nyx
|
||||
COPY --from=build-env /go/src/github.com/rls-moe/nyx/config.example.yml /opt/nyx/config.yml
|
||||
RUN ln -s \
|
||||
/opt/nyx/nyx \
|
||||
/usr/local/bin/nyx && \
|
||||
chown -R \
|
||||
nyx:nyx /opt/nyx
|
Reference in New Issue
Block a user