Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions PRA04_ANSWER/app3.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use an official lightweight Nginx image
FROM nginx:alpine

# Set the working directory to /usr/share/nginx/html
WORKDIR /usr/share/nginx/html

# Copy the static files from the dist directory to the container
COPY dist /usr/share/nginx/html

# Expose port 80 for the web server
EXPOSE 80

# Command to run when the container starts
CMD ["nginx", "-g", "daemon off;"]
9 changes: 9 additions & 0 deletions PRA04_ANSWER/book.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openjdk:21-slim

WORKDIR /app

COPY BooksPageable-0.0.1-SNAPSHOT.jar app.jar

EXPOSE 8088

CMD ["java", "-jar", "app.jar", "--server.port=8088"]
6 changes: 6 additions & 0 deletions PRA04_ANSWER/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Configuración y contenedorización de Docker para aplicaciones Spring Boot y React"

author: "Boris"
---
[Docker](https://borizsam.github.io/Proyecto-Dev/docker.html)