Skip to content

Commit 214b408

Browse files
committed
fix(docker): using env instead of git config command
1 parent 1c85af2 commit 214b408

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "backend"
33
description = "Backend API and services for StackClass"
4-
version = "0.24.0"
4+
version = "0.25.0"
55
edition = "2024"
66

77
default-run = "stackclass-server"

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4646
&& apt-get clean \
4747
&& rm -rf /var/lib/apt/lists/*
4848

49-
RUN adduser --uid 1001 --home /home/axum axum \
50-
&& chown axum:axum /home/axum
49+
RUN addgroup --system --gid 1001 axum
50+
RUN adduser --system --uid 1001 axum
5151
USER axum
5252

53-
RUN git config --global user.name "StackClass" && \
54-
git config --global user.email "[email protected]"
53+
ENV GIT_AUTHOR_NAME="StackClass"
54+
ENV GIT_AUTHOR_EMAIL="[email protected]"
55+
ENV GIT_COMMITTER_NAME="StackClass"
56+
ENV GIT_COMMITTER_EMAIL="[email protected]"
5557

5658
# Copy the executable from the "building" stage.
5759
COPY --from=builder \

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": {
77
"name": ""
88
},
9-
"version": "0.24.0"
9+
"version": "0.25.0"
1010
},
1111
"paths": {
1212
"/v1/courses": {

0 commit comments

Comments
 (0)