Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -33,16 +33,17 @@ RUN a2enmod rewrite vhost_alias headers
|
|
| 33 |
# Copy config files
|
| 34 |
COPY config/php.ini /usr/local/etc/php/conf.d/99-custom.ini
|
| 35 |
COPY config/apache.conf /etc/apache2/sites-available/platform.conf
|
| 36 |
-
COPY entrypoint.sh /entrypoint.sh
|
| 37 |
|
| 38 |
# Copy backend PHP API files
|
| 39 |
COPY api/ /var/www/api/
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
# Enable our site, disable default
|
| 42 |
RUN a2dissite 000-default && a2ensite platform
|
| 43 |
|
| 44 |
-
RUN chmod +x /entrypoint.sh
|
| 45 |
-
|
| 46 |
EXPOSE 7860
|
| 47 |
|
| 48 |
-
CMD ["/entrypoint.sh"]
|
|
|
|
| 33 |
# Copy config files
|
| 34 |
COPY config/php.ini /usr/local/etc/php/conf.d/99-custom.ini
|
| 35 |
COPY config/apache.conf /etc/apache2/sites-available/platform.conf
|
|
|
|
| 36 |
|
| 37 |
# Copy backend PHP API files
|
| 38 |
COPY api/ /var/www/api/
|
| 39 |
|
| 40 |
+
# Copy entrypoint and set permissions in the same layer
|
| 41 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 42 |
+
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
|
| 43 |
+
|
| 44 |
# Enable our site, disable default
|
| 45 |
RUN a2dissite 000-default && a2ensite platform
|
| 46 |
|
|
|
|
|
|
|
| 47 |
EXPOSE 7860
|
| 48 |
|
| 49 |
+
CMD ["/bin/bash", "/entrypoint.sh"]
|