added ts compiler to dockerfile
This commit is contained in:
parent
eee080bd8f
commit
b8a2f8baba
1 changed files with 8 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue