Skip to content

Commit ef71863

Browse files
author
JLRR2019
committed
Último push antes del merge con el main
1 parent 4154a79 commit ef71863

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

backend/gamelink/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
#################################################
2-
# Imagen base para el contenedor de compilación
2+
# Base image for the build container
33
#################################################
44
FROM maven:3.8.4-openjdk-17 as builder
55

6-
# Define el directorio de trabajo donde ejecutar comandos
6+
# Defines the working directory where to execute commands
77
WORKDIR /project
88

99
# Copia las dependencias del proyecto
1010
COPY pom.xml /project/
1111

12-
# Descarga las dependencias del proyecto (lo hemos comentado para que se descarguen de internet, no de manera local)
12+
# Download the dependencies of the project (we have commented it so that they are downloaded from the internet, not locally)
1313
#RUN mvn clean verify
1414

15-
# Copia el código del proyecto
15+
# Copy the project code
1616
COPY /src /project/src
1717

1818
# Compila proyecto
1919
RUN mvn package -DskipTests=true
2020

2121
#################################################
22-
# Imagen base para el contenedor de la aplicación
22+
# Base image for the application container
2323
#################################################
2424
FROM openjdk:17.0.2
2525

26-
# Define el directorio de trabajo donde se encuentra el JAR
26+
# Defines the working directory where the JAR is located
2727
WORKDIR /usr/src/app
2828

29-
# Copia el JAR del contenedor de compilación
29+
# Copy the JAR from the build container
3030
COPY --from=builder /project/target/*.jar /usr/src/app/
3131

32-
# Indica el puerto que expone el contenedor
32+
# Indicates the port that exposes the container
3333
EXPOSE 8443
3434

35-
# Comando que se ejecuta al hacer docker run
35+
# Command that is executed when doing docker run
3636
CMD [ "java", "-jar", "gamelink-0.0.1-SNAPSHOT.jar" ]

backend/gamelink/docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
version: "3.9"
22
services:
33
web:
4-
build:
5-
context: .
6-
dockerfile: Dockerfile
4+
image: juanurjc/gamelink:latest
75
ports:
86
- 8443:8443
97
environment:

0 commit comments

Comments
 (0)