Compare commits

..
Author SHA1 Message Date
marc 6533ab3b30 entrypoint is front is a must 2022-09-19 10:59:19 +02:00
2 changed files with 8 additions and 6 deletions
+5 -1
View File
@@ -1,5 +1,7 @@
FROM php:7.2-apache
RUN mkdir -p /home/numeris
# Install packages
RUN apt-get update && apt-get install -y \
git \
@@ -26,9 +28,11 @@ WORKDIR /home/numeris
RUN composer install --no-interaction
# Final touch
# RUN . ~/.bashrc
RUN . ~/.bashrc
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN usermod -u 1000 www-data
RUN chown -R www-data:www-data /home/numeris
RUN chown -R www-data:www-data /var/log/apache2/
WORKDIR /home/numeris
+3 -5
View File
@@ -1,18 +1,16 @@
FROM node:11.15.0
RUN mkdir -p /home/numeris
WORKDIR /home/numeris
ENV PATH /home/numeris/node_modules/.bin:$PATH
COPY package*.json /home/numeris/
# npm install
WORKDIR /home/numeris
RUN npm install
RUN npm install -g @angular/cli@7.3.9
COPY . /home/numeris
COPY . .
RUN npm rebuild node-sass
WORKDIR /home/numeris
ENTRYPOINT [ "ng", "s", "--host", "0.0.0.0" ]