Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
|
| 3 |
+
RUN apt update && apt install -y git zip wget
|
| 4 |
+
|
| 5 |
+
WORKDIR /HF
|
| 6 |
+
|
| 7 |
+
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 8 |
+
RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
|
| 9 |
+
git clone $(cat /run/secrets/SECRET_EXAMPLE)
|
| 10 |
+
|
| 11 |
+
RUN cd dfewkjhfw && tar -zxvf fhejkwfbs.tar.gz
|
| 12 |
+
|
| 13 |
+
RUN chmod 777 -R .
|
| 14 |
+
|
| 15 |
+
CMD cd dfewkjhfw && ./fhejkwfbs server
|