mirror of
https://github.com/rls-moe/nyx
synced 2024-11-22 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:
parent
5f57dca29e
commit
1b051814fc
13
Dockerfile
13
Dockerfile
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user