Enable the use of configuration files in `Dockerfile`

next
Sayan Nandan 3 years ago
parent 2cdabfc43e
commit 3b3666f264
No known key found for this signature in database
GPG Key ID: 8BC07A0A4D41DD52

@ -2,4 +2,5 @@
*
# Only include the skyd binary
!target/release/skyd
!target/release/skyd
!examples/config-files/docker.toml

@ -5,7 +5,9 @@
FROM debian:stable
COPY target/release/skyd /usr/local/bin
RUN mkdir /etc/skytable
COPY examples/config-files/docker.toml /etc/skytable/skyd.toml
CMD ["skyd", "-h", "0.0.0.0", "-p", "2003"]
CMD ["skyd", "-c", "/etc/skytable/skyd.toml"]
EXPOSE 2003/tcp

@ -0,0 +1,6 @@
# this is the default configuration file for Docker images. Modify it as required
[server]
host = "127.0.0.1"
port = 2003
noart = true
maxcon = 50000
Loading…
Cancel
Save