diff --git a/Dockerfile b/Dockerfile index 7d2338dadf06773e603ea6b371f69f11dc79b316..5249d3531c883b3e45276810d2c2030059e1746e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +COPY --from=build-ts /build/public /var/www/html \ No newline at end of file