0
0
mirror of https://github.com/rls-moe/nyx synced 2024-11-21 22:12:24 +00:00

fixed board server not being on right user and working directory

it didn't load the config file because of that
This commit is contained in:
Bryan Joshua Pedini 2020-04-21 19:46:34 +02:00
parent 5f57dca29e
commit 1b051814fc

View File

@ -23,14 +23,11 @@ RUN groupadd \
--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 \
RUN chown -R \
nyx:nyx /opt/nyx
WORKDIR /opt/nyx
USER nyx
CMD [ "/opt/nyx/nyx" ]