From b8a2f8baba29374535f9a086d5661b5bf4e52aa4 Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Mon, 11 Jan 2021 20:20:57 +0100 Subject: [PATCH] added ts compiler to dockerfile --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d2338d..5249d35 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 -- GitLab