feat: docker deployment
This commit is contained in:
+9
-4
@@ -1,5 +1,10 @@
|
||||
FROM nginx:alpine:latest
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY . .
|
||||
CMD [ "nginx", "-g", "daemon off;" ]
|
||||
# everyone use that
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
COPY ./files /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
# Start
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user