-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Create .dockerignore * Create containerfile * Update agdb_server.yaml * Update agdb_server.yaml * Update release.yaml * Update release.yaml * Update release.yaml
- Loading branch information
1 parent
583956d
commit 1adcf9e
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/target | ||
**/vendor | ||
**/node_modules | ||
**/dist | ||
**/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM rust:alpine AS builder | ||
WORKDIR /usr/src/agdb_server | ||
COPY . . | ||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static | ||
RUN cargo build --package agdb_server --release | ||
|
||
FROM alpine:latest | ||
COPY --from=builder /usr/src/agdb_server/target/release/agdb_server /usr/local/bin/agdb_server | ||
# adduser -D: disable password, -H: do not create home directory | ||
RUN addgroup -g 1000 agdb && \ | ||
adduser -D -H -u 1000 -G agdb agdb && \ | ||
mkdir -p /agdb && \ | ||
chown agdb:agdb /agdb | ||
USER agdb | ||
WORKDIR /agdb | ||
CMD ["/usr/local/bin/agdb_server"] | ||
|
||
EXPOSE 3000 |