Projet 42: Sujet: Conteneuriser un serveur wordpress à l'aide de docker, alpine/debian, nginx et mariadb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
492 B

FROM alpine:3.15
RUN apk update && apk upgrade && apk add --no-cache git gitea mariadb-client
RUN addgroup git && adduser -D -G git git
COPY start.sh /tmp/start.sh
COPY app.ini /tmp/app.ini
RUN mkdir -p /var/lib/gitea/{custom,data,log}
RUN chown -R git:git /var/lib/gitea/ && chmod -R 750 /var/lib/gitea/
RUN chown -R root:git /etc/gitea && chmod -R 770 /etc/gitea
RUN chown root:git /tmp/app.ini && chmod 770 /tmp/app.ini
USER git
WORKDIR /etc/gitea
ENTRYPOINT ["sh", "/tmp/start.sh"]