Spaces:
Build error
Build error
Gusti Adli Anshari
commited on
Commit
·
6463883
1
Parent(s):
6bd2ace
add config.yaml and env variables
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -15,5 +15,10 @@ FROM scratch
|
|
| 15 |
WORKDIR /app/bin
|
| 16 |
# Copy the application binary
|
| 17 |
COPY --from=builder /usr/local/cargo/bin/rust-rocket-counter-api /app/bin/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Run the binary
|
| 19 |
CMD [ "./app" ]
|
|
|
|
| 15 |
WORKDIR /app/bin
|
| 16 |
# Copy the application binary
|
| 17 |
COPY --from=builder /usr/local/cargo/bin/rust-rocket-counter-api /app/bin/app
|
| 18 |
+
# Copy config.yaml
|
| 19 |
+
COPY config.yaml /app/config.yaml
|
| 20 |
+
# Set environment variables
|
| 21 |
+
ENV CONFIG_PATH /app/config.yaml
|
| 22 |
+
ENV ROCKET_ADDRESS 0.0.0.0
|
| 23 |
# Run the binary
|
| 24 |
CMD [ "./app" ]
|