mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-14 03:56:49 +01:00
restore chmod for windows based builds
This commit is contained in:
parent
449d2b4c7e
commit
1d5345d029
@ -76,6 +76,7 @@ cpu.out
|
|||||||
/.go-licenses
|
/.go-licenses
|
||||||
Dockerfile
|
Dockerfile
|
||||||
Dockerfile.rootless
|
Dockerfile.rootless
|
||||||
|
|
||||||
# Files and folders that were previously generated
|
# Files and folders that were previously generated
|
||||||
/public/assets/img/webpack
|
/public/assets/img/webpack
|
||||||
|
|
||||||
|
|||||||
12
Dockerfile
12
Dockerfile
@ -26,6 +26,16 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
--mount=type=bind,source=".git/",target=".git/" \
|
--mount=type=bind,source=".git/",target=".git/" \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
COPY docker/root /tmp/local
|
||||||
|
|
||||||
|
# Set permissions for builds that made under windows which strips the executable bit from file
|
||||||
|
RUN chmod 755 /tmp/local/usr/bin/entrypoint \
|
||||||
|
/tmp/local/usr/local/bin/* \
|
||||||
|
/tmp/local/etc/s6/gitea/* \
|
||||||
|
/tmp/local/etc/s6/openssh/* \
|
||||||
|
/tmp/local/etc/s6/.s6-svscan/* \
|
||||||
|
/go/src/code.gitea.io/gitea/gitea
|
||||||
|
|
||||||
FROM docker.io/library/alpine:3.22 AS gitea
|
FROM docker.io/library/alpine:3.22 AS gitea
|
||||||
|
|
||||||
EXPOSE 22 3000
|
EXPOSE 22 3000
|
||||||
@ -55,7 +65,7 @@ RUN addgroup \
|
|||||||
git && \
|
git && \
|
||||||
echo "git:*" | chpasswd -e
|
echo "git:*" | chpasswd -e
|
||||||
|
|
||||||
COPY docker/root /
|
COPY --from=build-env /tmp/local /
|
||||||
COPY --chmod=755 --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
|
COPY --chmod=755 --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
|
||||||
|
|
||||||
ENV USER=git
|
ENV USER=git
|
||||||
|
|||||||
@ -26,6 +26,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
--mount=type=bind,source=".git/",target=".git/" \
|
--mount=type=bind,source=".git/",target=".git/" \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
COPY docker/rootless /tmp/local
|
||||||
|
|
||||||
|
# Set permissions for builds that made under windows which strips the executable bit from file
|
||||||
|
RUN chmod 755 /tmp/local/usr/local/bin/* \
|
||||||
|
/go/src/code.gitea.io/gitea/gitea
|
||||||
|
|
||||||
FROM docker.io/library/alpine:3.22 AS gitea-rootless
|
FROM docker.io/library/alpine:3.22 AS gitea-rootless
|
||||||
|
|
||||||
EXPOSE 2222 3000
|
EXPOSE 2222 3000
|
||||||
@ -54,7 +60,7 @@ RUN addgroup \
|
|||||||
RUN mkdir -p /var/lib/gitea /etc/gitea
|
RUN mkdir -p /var/lib/gitea /etc/gitea
|
||||||
RUN chown git:git /var/lib/gitea /etc/gitea
|
RUN chown git:git /var/lib/gitea /etc/gitea
|
||||||
|
|
||||||
COPY docker/rootless /
|
COPY --from=build-env /tmp/local /
|
||||||
COPY --from=build-env --chmod=755 --chown=root:root /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
|
COPY --from=build-env --chmod=755 --chown=root:root /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
|
||||||
|
|
||||||
# git:git
|
# git:git
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user