Last active
April 5, 2024 08:40
-
-
Save cicorias/7613649bae43ddeabd6a07fb4027dc3b to your computer and use it in GitHub Desktop.
Simple HTTP server in Docker
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
### | |
FROM mhart/alpine-node | |
RUN npm install -g http-server | |
WORKDIR /site | |
ADD ./ /site | |
# The default port of the application | |
EXPOSE 8080 | |
CMD ["http-server", "--cors", "-p8080", "/site"] |
Swarag-N
commented
Dec 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment