Skip to content

Imagen de Docker agregada #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged

Imagen de Docker agregada #9

merged 1 commit into from
Apr 21, 2025

Conversation

aminespinoza10
Copy link
Collaborator

Closes #8

This pull request introduces a Dockerfile for containerizing the ContactosAPI application and updates the Program.cs file to always enable Swagger, regardless of the environment. These changes aim to streamline deployment and improve API documentation accessibility.

Containerization:

  • Added a new Dockerfile to build and publish the ContactosAPI application using the .NET 8.0 SDK and runtime images. This includes steps for restoring dependencies, building, and publishing the application, as well as defining the runtime environment and entry point. (src/ContactosAPI/Dockerfile, src/ContactosAPI/DockerfileR1-R14)

API Documentation:

  • Modified Program.cs to ensure Swagger and Swagger UI are always enabled, removing the condition that restricted them to the development environment. (src/ContactosAPI/Program.cs, src/ContactosAPI/Program.csL10-L16)

@aminespinoza10 aminespinoza10 requested a review from gndx April 21, 2025 17:34
Copy link
Member

@gndx gndx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aminespinoza10 aminespinoza10 merged commit fa91edc into main Apr 21, 2025
1 check passed
@aminespinoza10 aminespinoza10 deleted the amines/8 branch April 21, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Agregar imagen de Docker
2 participants