Use nginx alpine in static dockerfile

This commit is contained in:
Joxit 2017-10-22 11:59:44 +02:00
parent 89c532edbd
commit adab8b03de
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FROM nginx
FROM nginx:alpine
MAINTAINER Jones MAGLOIRE @Joxit
@ -23,4 +23,4 @@ COPY dist/scripts/script-static.js /usr/share/nginx/html/scripts/script.js
COPY dist/scripts/tags-static.js /usr/share/nginx/html/scripts/tags.js
COPY bin/entrypoint /bin
ENTRYPOINT entrypoint
ENTRYPOINT entrypoint

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
$@
sed -i "s,\${URL},${URL}," scripts/script.js
@ -10,4 +10,4 @@ if [ -z "$@" ]; then
nginx -g "daemon off;"
else
$@
fi
fi