public code v1
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
FROM maven:3.8.6-eclipse-temurin-11
|
||||
|
||||
# GTK3 + X11 para poder ejecutar la app dentro del contenedor
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libgtk-3-0 \
|
||||
libwebkit2gtk-4.0-37 \
|
||||
libcanberra-gtk-module \
|
||||
libcanberra-gtk3-module \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
x11-utils \
|
||||
fonts-dejavu \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /project
|
||||
|
||||
# Pre-cacheamos dependencias de Maven (se ejecuta solo si pom.xml cambia)
|
||||
COPY pom.xml .
|
||||
COPY .mvn .mvn
|
||||
COPY releng/flintstones.application.configuration/pom.xml releng/flintstones.application.configuration/pom.xml
|
||||
RUN mvn dependency:go-offline -N -f releng/flintstones.application.configuration/pom.xml 2>/dev/null || true
|
||||
|
||||
# Copiamos el resto del proyecto
|
||||
COPY . .
|
||||
|
||||
# Build completo
|
||||
RUN mvn clean install -Dmaven.test.skip=true
|
||||
|
||||
CMD ["bash"]
|
||||
Reference in New Issue
Block a user