FROM nginx:alpine RUN apk add --no-cache wget unzip curl RUN sed -i 's/listen *80;/listen 7860;/g' /etc/nginx/conf.d/default.conf WORKDIR /usr/share/nginx/html RUN rm -rf ./* RUN wget -qO emu.zip https://github.com/EmulatorJS/EmulatorJS/archive/refs/heads/main.zip && unzip -q emu.zip && mv EmulatorJS-main/* . && rm -rf EmulatorJS-main emu.zip RUN mkdir -p ROM_VAULT COPY index.html ./ COPY ROM_VAULT/ ./ROM_VAULT/ EXPOSE 7860 CMD ["nginx", "-g", "daemon off;"]