15 lines
415 B
Docker
15 lines
415 B
Docker
FROM nginx:1.21.4
|
|
|
|
# remove the default config
|
|
RUN rm /etc/nginx/conf.d/default.conf && \
|
|
rm /etc/nginx/nginx.conf
|
|
|
|
# create new root folder
|
|
# todo: share upload folder in admin with myems-api container on Docker
|
|
RUN mkdir -p /var/www/html/admin
|
|
|
|
# copy the config and web codes
|
|
COPY nginx.conf /etc/nginx/
|
|
COPY . /var/www/html/admin
|
|
EXPOSE 8001
|
|
CMD ["nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off;"] |