fix: Dockerfile
This commit is contained in:
parent
6114f69a50
commit
f85b3be2f3
3 changed files with 2186 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
|||
target/
|
||||
/Cargo.lock
|
||||
.idea/
|
||||
pkg/
|
||||
.nvmrc
|
||||
|
|
2182
Cargo.lock
generated
Normal file
2182
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -39,6 +39,10 @@ COPY --from=build-stage /build/target/release/server server
|
|||
RUN cp /srv/static/*.csv dictionary.csv
|
||||
RUN echo '{"dictionary_path": "dictionary.csv", "static_path": "static"}' > config.json
|
||||
|
||||
RUN useradd -d /srv wordgrid && chown -R wordgrid:wordgrid /srv
|
||||
|
||||
USER wordgrid
|
||||
|
||||
# See https://rocket.rs/guide/v0.5/deploying/#containerization
|
||||
ENV ROCKET_ADDRESS=0.0.0.0
|
||||
ENV ROCKET_PORT=8000
|
||||
|
|
Loading…
Reference in a new issue