OcDash Deploy commited on
Commit
7ca74b8
·
1 Parent(s): 45f0922

fix: nginx port 8080, simpler Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -3
  2. nginx.conf +1 -1
Dockerfile CHANGED
@@ -2,8 +2,6 @@ FROM nginx:alpine
2
  COPY . /usr/share/nginx/html
3
  COPY nginx.conf /etc/nginx/conf.d/default.conf
4
  COPY start.sh /start.sh
5
- RUN rm -f /usr/share/nginx/html/Dockerfile /usr/share/nginx/html/nginx.conf /usr/share/nginx/html/README.md /usr/share/nginx/html/start.sh /usr/share/nginx/html/.gitignore 2>/dev/null; \
6
- rm -rf /usr/share/nginx/html/.git 2>/dev/null; \
7
- chmod +x /start.sh
8
  EXPOSE 8080
9
  CMD ["/start.sh"]
 
2
  COPY . /usr/share/nginx/html
3
  COPY nginx.conf /etc/nginx/conf.d/default.conf
4
  COPY start.sh /start.sh
5
+ RUN rm -rf /usr/share/nginx/html/.git /usr/share/nginx/html/Dockerfile /usr/share/nginx/html/nginx.conf /usr/share/nginx/html/start.sh /usr/share/nginx/html/.dockerignore && chmod +x /start.sh
 
 
6
  EXPOSE 8080
7
  CMD ["/start.sh"]
nginx.conf CHANGED
@@ -1,5 +1,5 @@
1
  server {
2
- listen 80;
3
  root /usr/share/nginx/html;
4
  index index.html;
5
  location / {
 
1
  server {
2
+ listen 8080;
3
  root /usr/share/nginx/html;
4
  index index.html;
5
  location / {