mtfosbot_web/Dockerfile

10 lines
286 B
Docker
Raw Normal View History

2018-08-24 12:30:28 +00:00
FROM nginx:alpine
LABEL maintainer="Jay <admin@trj.tw>"
2018-08-24 14:35:14 +00:00
# ARG PREFIX
2018-08-24 12:30:28 +00:00
RUN mkdir -p /data
WORKDIR /data
COPY dist/ /data
COPY nginx.conf /etc/nginx/conf.d/default.conf
2018-08-24 14:35:14 +00:00
# RUN sed -i 's@\$\$prefix\$\$@'${PREFIX}'@' /etc/nginx/conf.d/default.conf
2018-08-24 12:30:28 +00:00
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]