9 lines
No EOL
289 B
Docker
9 lines
No EOL
289 B
Docker
FROM nginx:alpine
|
|
# Set working directory to nginx asset directory
|
|
WORKDIR /usr/share/nginx/html
|
|
# Remove default nginx static assets
|
|
RUN rm -rf ./*
|
|
# Copy static assets over
|
|
COPY dist .
|
|
# Containers run nginx with global directives and daemon off
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |