Skip to content
Merged
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
2 changes: 1 addition & 1 deletion dockerfiles/entrypoint/assignment01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Creating CLI programs with Docker ENTRYPOINT

This assignment has two different Dockerfiles for you to build that are meant to run a single execuable.
This assignment has two different Dockerfiles for you to build that are meant to run a single executable.

1. The cmatrix subdirectory uses the Alpine Linux image and installs the cmatrix screen saver.
2. The apachebench subdirectory uses the Ubuntu image and installs the apache2-utils package for running the ab benchmarking tool.
Expand Down
8 changes: 0 additions & 8 deletions dockerfiles/entrypoint/assignment01/apachebench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# use the README.md file for requirements to build this image
# If you get stuck, the answer/ directory has the solution
FROM ubuntu:latest

RUN apt-get update && \
apt-get install -y apache2-utils && \
rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["ab"]

CMD ["-n", "10", "-c", "2", "https://www.bretfisher.com/"]

6 changes: 0 additions & 6 deletions dockerfiles/entrypoint/assignment01/cmatrix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# use the README.md file for requirements to build this image
# If you get stuck, the answer/ directory has the solution
FROM alpine:latest

RUN apk add --no-cache cmatrix

ENTRYPOINT ["cmatrix"]

CMD ["-abs", "-C", "red"]

14 changes: 0 additions & 14 deletions dockerfiles/entrypoint/assignment02/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# use the README.md file for requirements to build this image
# If you get stuck, the answer/ directory has the solution
FROM python:slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

VOLUME /app/data

ENTRYPOINT ["./docker-entrypoint.sh"]

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]