Skip to content

Commit

Permalink
Merge pull request #3 from 3YOURMIND/refactor-dockerfile
Browse files Browse the repository at this point in the history
fix package versions
  • Loading branch information
igeligel authored Aug 20, 2018
2 parents d625bec + 2f44428 commit 27822fc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ FROM node:8.11.3-slim

RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
python \
make \
gcc \
g++ \
libc6-dev
git=1:2.1.4-2.1+deb8u6 \
python=2.7.9-1 \
make=4.0-8.1 \
gcc=4:4.9.2-2 \
g++=4:4.9.2-2 \
libc6-dev=2.19-18+deb8u10 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/Financial-Times/polyfill-service.git /polyfill

Expand All @@ -21,5 +23,5 @@ ENV NODE_ENV dev

EXPOSE ${PORT}

CMD ["node" ,"--optimize_for_size" ,"--max_old_space_size=460" ,"--gc_interval=100" ,"packages/polyfill-service/bin/polyfill-service"]
CMD ["node", "--optimize_for_size", "--max_old_space_size=460", "--gc_interval=100", "packages/polyfill-service/bin/polyfill-service"]

0 comments on commit 27822fc

Please sign in to comment.