File tree Expand file tree Collapse file tree 3 files changed +32
-12
lines changed Expand file tree Collapse file tree 3 files changed +32
-12
lines changed Original file line number Diff line number Diff line change
1
+ Dockerfile
2
+ .dockerignore
3
+ .gitignore
4
+ .nvmrc
5
+ node_modules
6
+ assets /dist
7
+ assets /prod
8
+ LICENSE
9
+ README.md
10
+
Original file line number Diff line number Diff line change 1
- FROM php:7.1-apache
1
+ FROM node:10-buster-slim as builder
2
+ LABEL author=
"Devin Matte <[email protected] >"
3
+
4
+ WORKDIR /usr/src/schedule
5
+ COPY package.json ./
6
+
7
+ RUN npm install
8
+
9
+ COPY package.json tsconfig.json gulpfile.js ./
10
+ COPY assets ./assets
11
+ RUN npm run-script build
12
+
13
+
14
+ FROM php:7.3-apache as php-setup
2
15
LABEL author=
"Devin Matte <[email protected] >"
3
16
4
17
RUN echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list
@@ -21,6 +34,7 @@ RUN apt-get -yq update && \
21
34
libjpeg-dev \
22
35
libfreetype6-dev \
23
36
libxml2-dev \
37
+ unzip \
24
38
wget \
25
39
--no-install-recommends
26
40
@@ -40,22 +54,18 @@ RUN docker-php-ext-install mysqli && \
40
54
41
55
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
42
56
57
+
58
+ FROM php-setup
59
+ LABEL author=
"Devin Matte <[email protected] >"
60
+
43
61
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
44
62
45
63
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
46
64
sed -i '/Listen/{s/\( [0-9]\+\) /8080/; :a;n; ba}' /etc/apache2/ports.conf && \
47
65
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
48
66
49
67
COPY . /var/www/html
50
-
51
- RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
52
- && apt-get -yq update \
53
- && apt-get -yq install nodejs --no-install-recommends \
54
- && npm install \
55
- && npm run-script build \
56
- && apt-get -yq remove nodejs \
57
- && apt-get -yq clean all \
58
- && rm -rf node_modules
68
+ COPY --from=builder /usr/src/schedule/assets/prod /var/www/html/assets/prod
59
69
60
70
RUN composer install
61
71
Original file line number Diff line number Diff line change 1
1
{
2
2
"include" : [
3
- " assets/src/modules/sm/**/*.ts"
3
+ " ./ assets/src/modules/sm/**/*.ts"
4
4
],
5
- "exclude" : [" node_modules" ],
5
+ "exclude" : [" ./ node_modules" ],
6
6
"compilerOptions" : {
7
7
"module" : " es2015" ,
8
8
"allowJs" : false ,
You can’t perform that action at this time.
0 commit comments