JairoDanielMT commited on
Commit
67d27bd
·
verified ·
1 Parent(s): bd0bc84

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,12 +1,19 @@
1
- FROM eclipse-temurin:17-jre
2
- FROM python:3.12-slim
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  COPY plantuml.jar /app/plantuml.jar
6
  COPY index.html /app/index.html
7
  COPY proxy.py /app/proxy.py
8
- RUN pip install flask requests
 
 
9
  EXPOSE 7860
10
 
11
- # Iniciar PlantUML y el proxy juntos
12
  CMD sh -c "java -jar plantuml.jar -picoweb 127.0.0.1:9000 & python3 proxy.py"
 
1
+ FROM ubuntu:22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ RUN apt-get update && \
6
+ apt-get install -y openjdk-17-jre-headless python3 python3-pip && \
7
+ apt-get clean
8
+
9
  WORKDIR /app
10
 
11
  COPY plantuml.jar /app/plantuml.jar
12
  COPY index.html /app/index.html
13
  COPY proxy.py /app/proxy.py
14
+
15
+ RUN pip3 install flask requests
16
+
17
  EXPOSE 7860
18
 
 
19
  CMD sh -c "java -jar plantuml.jar -picoweb 127.0.0.1:9000 & python3 proxy.py"