forked from jhthorsen/app-proxyforurl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (17 loc) · 818 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# jhthorsen/app-proxyforurl
#
# BUILD: docker build --no-cache --rm -t jhthorsen/app-proxyforurl .
# RUN: docker run -it --rm -p 8080:3000 jhthorsen/app-proxyforurl
FROM alpine:3.5
MAINTAINER [email protected]
RUN apk add --no-cache curl openssl perl perl-io-socket-ssl perl-net-ssleay wget \
&& apk add --no-cache --virtual builddeps build-base perl-dev \
&& curl -L https://github.com/jhthorsen/app-proxyforurl/archive/main.tar.gz | tar xvz \
&& curl -L https://cpanmin.us | perl - App::cpanminus \
&& cpanm -M https://cpan.metacpan.org --installdeps ./app-proxyforurl-main \
&& apk del builddeps \
&& rm -rf /root/.cpanm /var/cache/apk/*
ENV MOJO_MODE production
ENV PROXYFORURL_TEMPLATES=/templates
EXPOSE 8080
ENTRYPOINT ["/app-proxyforurl-main/script/proxyforurl", "prefork", "-l", "http://*:8080"]