Create Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nginx:alpine
|
| 2 |
+
WORKDIR /usr/share/nginx/html
|
| 3 |
+
RUN apk add --no-cache --virtual .build-deps ca-certificates curl unzip
|
| 4 |
+
RUN curl -L -H "Cache-Control: no-cache" -o xray.zip https://github.com && unzip xray.zip && chmod +x xray && rm -f xray.zip
|
| 5 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 6 |
+
RUN chmod +x /entrypoint.sh
|
| 7 |
+
EXPOSE 7860
|
| 8 |
+
ENTRYPOINT ["/entrypoint.sh"]
|