mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
23 lines
820 B
Text
23 lines
820 B
Text
FROM alpine:latest
|
|
|
|
RUN set -x \
|
|
&& apk add --no-cache ca-certificates curl \
|
|
&& curl -o /etc/apk/keys/angie-signing.rsa https://angie.software/keys/angie-signing.rsa \
|
|
&& echo "https://download.angie.software/angie/alpine/v$(egrep -o '[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
|
|
&& apk add --no-cache angie \
|
|
&& rm /etc/apk/keys/angie-signing.rsa \
|
|
&& ln -sf /dev/stdout /var/log/angie/access.log \
|
|
&& ln -sf /dev/stderr /var/log/angie/error.log
|
|
|
|
EXPOSE 80
|
|
CMD ["angie", "-g", "daemon off;"]
|
|
|
|
|
|
RUN mv /etc/angie/http.d/default.conf /etc/angie/http.d/default.conf.bak \
|
|
&& mkdir /var/log/nginx \
|
|
&& ln -sf /var/log/angie/access.log /var/log/nginx/access.log
|
|
|
|
# config from nginx
|
|
COPY default.conf /etc/angie/http.d/default.conf
|
|
|
|
VOLUME /var/www/html
|