You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
323 B
20 lines
323 B
FROM nginx |
|
|
|
WORKDIR /usr/share/nginx/html/ |
|
USER root |
|
|
|
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf |
|
|
|
COPY ./dist /usr/share/nginx/html/ |
|
|
|
EXPOSE 80 |
|
|
|
CMD ["nginx", "-g", "daemon off;"] |
|
|
|
# 构建镜像 |
|
|
|
# docker build -t user-center-frontend:1.0 . |
|
|
|
# 运行容器 |
|
|
|
# docker run -p 80:80 -d user-center-frontend:1.0
|
|
|