Gitlab - Argos ALM by PALO IT
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
poc-measure-rest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luis Eduardo Oviedo Granados
poc-measure-rest
Commits
7fdb495d
Commit
7fdb495d
authored
Jul 27, 2023
by
Alberto Apodaca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintainer
parent
0ae87c89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
Dockerfile
Dockerfile
+2
-11
No files found.
Dockerfile
View file @
7fdb495d
FROM
maven:3.9.3-eclipse-temurin-17-alpine
FROM
maven:3.9.3-eclipse-temurin-17-alpine
MAINTAINER
Palo-IT
# Establece el directorio de trabajo dentro del contenedor
WORKDIR
/app
WORKDIR
/app
# Copia el archivo pom.xml al directorio de trabajo
COPY
pom.xml .
COPY
pom.xml .
# Descarga las dependencias de Maven (esto permite que Docker cachee las dependencias si el pom.xml no cambia)
# Copia el resto del código fuente de la aplicación al directorio de trabajo
COPY
src ./src
COPY
src ./src
# Compila la aplicación con Maven
RUN
mvn package
RUN
mvn package
# Establece el directorio de trabajo en el contenedor
RUN
chmod
+x .
RUN
chmod
+x .
# Copia el archivo JAR compilado desde la imagen de construcción al contenedor final
RUN
cp
target/
**
SNAPSHOT.jar ./app.jar
RUN
cp
target/
**
SNAPSHOT.jar ./app.jar
# Comando para ejecutar la aplicación cuando se inicie el contenedor
CMD
["java", "-jar", "app.jar"]
CMD
["java", "-jar", "app.jar"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment