Leopere nov 11 #42
2 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --hom
|
|||
COPY --from=0 /download/chainquery /usr/bin
|
||||
|
||||
# ADD --chown=1000:1000 https://github.com/lbryio/chainquery/releases/download/latest/chainquery_latest_Linux_x86_64.zip /usr/bin
|
||||
COPY stuff/chainqueryconfig.toml /etc/chainquery/
|
||||
# COPY stuff/chainqueryconfig.toml /etc/chainquery/
|
||||
|
||||
## Get latest chainqueryconfig.toml from master on github as template.
|
||||
# TODO: add magic which pattern matches for chainqueryconfig.toml DEFAULT strings and replaces them with configured settings on container start.
|
||||
|
@ -42,8 +42,8 @@ COPY stuff/start.sh /usr/local/bin/start
|
|||
# TODO: Implement docker-entrypoint if later required this might be handy if we need certain maintainence tasks to be executed in the live container.
|
||||
# COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
|
||||
## From here onward we're doing this with no root.
|
||||
USER chainquery
|
||||
# ## From here onward we're doing this with no root.
|
||||
# USER chainquery
|
||||
|
||||
## Expose Chainquery API port
|
||||
EXPOSE 6300
|
||||
|
|
|
@ -46,4 +46,4 @@ else
|
|||
fi
|
||||
|
||||
## For now keeping this simple. Potentially eventually add all command args as envvars for the Dockerfile or use safe way to add args via docker-compose.yml
|
||||
chainquery serve -c "/etc/chainquery/"
|
||||
su -c "chainquery serve -c "/etc/chainquery/"" chainquery
|
||||
|
|
Loading…
Reference in a new issue