Spaces:
Sleeping
Sleeping
LeafLeafLeaf
commited on
Commit
•
82a7a24
1
Parent(s):
a1f5dd4
chmod log file
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -14,6 +14,12 @@ RUN apt-get -y install openjdk-11-jdk
|
|
14 |
|
15 |
COPY target/chiral-carbon-captcha-0.0.1.jar /app.jar
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
EXPOSE 9999
|
18 |
|
19 |
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=prod","-Dfile.encoding=UTF-8","-jar","/app.jar"]
|
|
|
14 |
|
15 |
COPY target/chiral-carbon-captcha-0.0.1.jar /app.jar
|
16 |
|
17 |
+
RUN mkdir -p /logs/prod && \
|
18 |
+
touch /logs/prod/chiral-carbon-captcha-prod-log-info.log && \
|
19 |
+
touch /logs/prod/chiral-carbon-captcha-prod-log-warn.log && \
|
20 |
+
touch /logs/prod/chiral-carbon-captcha-prod-log-error.log && \
|
21 |
+
chmod -R 777 /logs
|
22 |
+
|
23 |
EXPOSE 9999
|
24 |
|
25 |
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=prod","-Dfile.encoding=UTF-8","-jar","/app.jar"]
|