mirror of
https://github.com/sstent/containers.git
synced 2026-01-25 16:41:51 +00:00
first
This commit is contained in:
26
gitea/Dockerfile
Normal file
26
gitea/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM alpine:3.14
|
||||
LABEL maintainer="maintainers@gitea.io"
|
||||
|
||||
RUN addgroup -S -g 1000 gitea && \
|
||||
adduser -S -H -D -h /data/git -s /bin/bash -u 1000 -G gitea gitea && \
|
||||
echo "gitea:*" | chpasswd -e
|
||||
|
||||
|
||||
RUN apk add --no-cache \
|
||||
git-lfs \
|
||||
openssh-keygen \
|
||||
bash &&\
|
||||
apk add gitea --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
|
||||
mkdir /var/cache/gitea && \
|
||||
mkdir /home/gitea && \
|
||||
chown gitea:gitea /var/cache/gitea
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
||||
|
||||
|
||||
USER gitea:gitea
|
||||
|
||||
ENTRYPOINT ["/usr/bin/gitea"]
|
||||
|
||||
CMD ["web", "-c", "/data/app.ini"]
|
||||
Reference in New Issue
Block a user