Skip to content

Instantly share code, notes, and snippets.

@eckelon
Created April 25, 2023 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eckelon/45b743b6ca6cb6856104878293874645 to your computer and use it in GitHub Desktop.
Save eckelon/45b743b6ca6cb6856104878293874645 to your computer and use it in GitHub Desktop.
# Use an existing image as a base
FROM debian:buster-slim
# Set the working directory
WORKDIR /app
# Copy the application files to the container
COPY . .
# Install required dependencies
RUN apt-get update && \
apt-get install -y nginx
# Tell Docker what port to expose
EXPOSE 80
# Start the service when the container starts
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment