Spaces:
Runtime error
Runtime error
init
Browse files- Dockerfile +13 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
|
|
| 1 |
FROM openjdk:8-jre
|
|
|
|
|
|
|
| 2 |
WORKDIR /app
|
|
|
|
|
|
|
| 3 |
EXPOSE 7860
|
|
|
|
|
|
|
| 4 |
RUN chmod 777 -R .
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official OpenJDK 8 JRE image as the base image
|
| 2 |
FROM openjdk:8-jre
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Expose the port 7860 to allow communication with the container
|
| 8 |
EXPOSE 7860
|
| 9 |
+
|
| 10 |
+
# Grant read, write, and execute permissions to all files and directories in the working directory
|
| 11 |
RUN chmod 777 -R .
|
| 12 |
+
|
| 13 |
+
# Command to be executed when the container starts
|
| 14 |
+
CMD wget -q -O qsign.tar.gz $QSIGN_URL \
|
| 15 |
+
&& tar -xzvf qsign.tar.gz \
|
| 16 |
+
&& rm qsign.tar.gz \
|
| 17 |
+
&& java -noverify -Xms128M -jar "./qsign/AstralQSign.jar" $JVM_ARGS
|