-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# FROM python:slim | ||
|
||
# RUN mkdir /app | ||
# WORKDIR /app | ||
# COPY . /app | ||
|
||
# EXPOSE 8080 | ||
# CMD ["python", "-m", "http.server", "-b", "0.0.0.0", "8080"] | ||
|
||
FROM busybox:1.35 | ||
|
||
# Create a non-root user to own the files and run our server | ||
RUN adduser -D static | ||
USER static | ||
WORKDIR /home/static | ||
|
||
# Copy the static website | ||
# Use the .dockerignore file to control what ends up inside the image! | ||
COPY . . | ||
|
||
EXPOSE 8080 | ||
# Run BusyBox httpd | ||
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters