Use nginx alpine in static dockerfile
This commit is contained in:
parent
89c532edbd
commit
adab8b03de
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue