added ts compiler to dockerfile

This commit is contained in:
Jonas Leder 2021-01-11 20:20:57 +01:00
parent eee080bd8f
commit b8a2f8baba

View file

@ -6,6 +6,13 @@ RUN mkdir /build/public/css
RUN gem install sass
RUN sass --update scss:public/css --style compressed
# Bootstrap TypeScript
FROM tedneward/typescript AS build-ts
WORKDIR /build
COPY --from=build-scss /build /build
USER root
RUN mkdir /build/public/js
RUN tsc
# Prepare Webserver
ARG INSTALL_CRON=0
@ -51,4 +58,4 @@ ENV APACHE_RUN_USER=www-data \
# |--------------------------------------------------------------------------
# | Add php files of website
# |--------------------------------------------------------------------------
COPY --from=build-scss /build/public /var/www/html
COPY --from=build-ts /build/public /var/www/html