Commit a47a9c65 authored by TokaKaram's avatar TokaKaram

add docker file

parent ea8f114a
{ {
"liveServer.settings.port": 5501 "liveServer.settings.port": 5502
} }
\ No newline at end of file
FROM nginx:alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY . /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}
\ No newline at end of file
server {
listen 80;
# The root directory for your files inside the container
root /usr/share/nginx/html;
index index.html;
# This is important: it ensures that if you refresh a page on a
# specific route, it doesn't give a 404 error. It will always
# serve the index.html file, allowing your frontend routing to work.
location / {
try_files $uri $uri/ /index.html;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment