Skip to content

Commit 1c85af2

Browse files
committed
fix(docker): set HOME for git config in runtime stage
1 parent a3661ed commit 1c85af2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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.23.0"
4+
version = "0.24.0"
55
edition = "2024"
66

77
default-run = "stackclass-server"

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ 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 git config --global user.name "StackClass"
50-
RUN git config --global user.email "[email protected]"
51-
52-
RUN addgroup --system --gid 1001 axum
53-
RUN adduser --system --uid 1001 axum
49+
RUN adduser --uid 1001 --home /home/axum axum \
50+
&& chown axum:axum /home/axum
5451
USER axum
5552

53+
RUN git config --global user.name "StackClass" && \
54+
git config --global user.email "[email protected]"
55+
5656
# Copy the executable from the "building" stage.
5757
COPY --from=builder \
5858
/app/target/release/stackclass-server \

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.23.0"
9+
"version": "0.24.0"
1010
},
1111
"paths": {
1212
"/v1/courses": {

0 commit comments

Comments
 (0)