Updated dockerfile
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fd7c57e9ac
commit
4269494e0a
15
Dockerfile
15
Dockerfile
|
|
@ -1,17 +1,8 @@
|
|||
# Use lightweight Nginx image
|
||||
FROM nginx:alpine
|
||||
|
||||
# Remove default nginx static files
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
FROM scratch
|
||||
|
||||
# Copy your HTML/CSS/JS files into nginx's web root
|
||||
COPY . /usr/share/nginx/html
|
||||
|
||||
# Create /app/build and link/copy files for pipeline compatibility
|
||||
RUN mkdir -p /app && ln -s /usr/share/nginx/html /app/build
|
||||
|
||||
# Expose port 80 for the web server
|
||||
EXPOSE 80
|
||||
COPY . /app/build
|
||||
|
||||
# Start nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["tail", "-f", "/dev/null"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue