Skip to content

Commit

Permalink
Merge pull request #114 from EFForg/dockerfile_alpine
Browse files Browse the repository at this point in the history
Use node:7-alpine image in Dockerfile
  • Loading branch information
wioux authored Aug 16, 2017
2 parents 12e3e71 + 22176e2 commit 56fe742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM node:7.5.0
FROM node:7-alpine

RUN apk --update --no-cache add \
build-base file autoconf make gcc g++ python \
alpine-sdk automake autoconf make nasm gcc g++ zlib zlib-dev \
libpng libpng-dev libwebp libwebp-dev libjpeg-turbo libjpeg-turbo-dev

COPY package.json /tmp/package.json
RUN cd /tmp \
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh

if [ "$(tr '[:upper:]' '[:lower:]' <<<"$NODE_ENV")" = "production" ]; then
if [ "$(echo $NODE_ENV | tr '[:upper:]' '[:lower:]')" = "production" ]; then
npm run build:prod
git rev-parse HEAD >.build/revision
fi
Expand Down

0 comments on commit 56fe742

Please sign in to comment.