Skip to content

Comments

Exercises lesson5 - Cesar#26

Open
cesarsantiagonunez wants to merge 6 commits intohectorcanto:mainfrom
cesarsantiagonunez:exercises_lesson5
Open

Exercises lesson5 - Cesar#26
cesarsantiagonunez wants to merge 6 commits intohectorcanto:mainfrom
cesarsantiagonunez:exercises_lesson5

Conversation

@cesarsantiagonunez
Copy link

No description provided.

Copy link
Owner

@hectorcanto hectorcanto left a comment

Choose a reason for hiding this comment

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

Ben, pero había marxe para máis no exercicio 2. O primeiro ben

ENV LESSON_NUMBER=5
EXPOSE 80

RUN mv /etc/nginx/nginx.conf /etc/nginx/default.conf
Copy link
Owner

Choose a reason for hiding this comment

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

por que fas isto? para gardar o orixinal?

### Your changes

- Combine lines 4 and 5
- Replace line 8 with **ADD hello.zip**
Copy link
Owner

Choose a reason for hiding this comment

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

Diría que COPY e ADD ocupan o mesmo, non? eu diría de facer o unzip fora, aforras operaciónes e capas

@@ -11,3 +11,6 @@ Edit the Dockerfile and/or write below your thoughts. Open a pull request with y

### Your changes
Copy link
Owner

Choose a reason for hiding this comment

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

Poderîas ter engadido máis cousas:

  • cambiar a imaxe a lago máis minimalista (p.e. alpine), incluso unha imaxe que corra o binario e punto
  • Facer un multistage para librarte do lixo que xera APT
  • APT sen cache
  • Borrar o zip

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.

2 participants