Add docker deployment
All checks were successful
build docker image / docker-build (push) Successful in 4m53s

This commit is contained in:
2024-11-04 16:55:31 +02:00
parent 05ee3106a4
commit a07120a962
9 changed files with 7 additions and 25 deletions

View File

@ -82,14 +82,11 @@ COPY . .
RUN npm install \
&& npm run build \
&& chown www-data:www-data . -R \
&& mv /tmp/dist/* /tmp/api /var/www/html
WORKDIR /var/www/html
RUN cp config.js.ci config.js \
&& sed -i "s/{APP_URL}/$APP_URL/g" config.js \
&& chown www-data:www-data . -R
COPY ./entrypoint.sh /
CMD ["/bin/bash", "/entrypoint.sh"]