-
Notifications
You must be signed in to change notification settings - Fork 65
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
1 parent
a0aacdd
commit d5a790c
Showing
1 changed file
with
12 additions
and
0 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,12 @@ | ||
# Use the standard Nginx image from Docker Hub | ||
FROM nginx | ||
# Copy the configuration file from the current directory and paste | ||
# it inside the container to use it as Nginx's default config. | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
# Port 8080 of the container will be exposed and then mapped to port | ||
# 8080 of our host machine via Compose. This way we'll be able to | ||
# access the server via localhost:8080 on our host. | ||
EXPOSE 80 | ||
|
||
# Start Nginx when the container has provisioned. | ||
CMD ["nginx", "-g", "daemon off;"] |