Skip to content

Commit

Permalink
Using Alpine Linux for Docker Close #242
Browse files Browse the repository at this point in the history
Dockerのイメージのファイルサイズを削減するために
Alpine Linuxをベースとするイメージを使うようにする。

CircleCIにおいてはデプロイなどのいくつかの処理をしなければならない都合上、
Alpine LinuxではなくDebian GNU/Linuxをベースとするイメージのままである。
  • Loading branch information
ykzts committed Mar 2, 2017
1 parent b396c78 commit f0908ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM node:6.10.0
FROM node:6.10.0-alpine

ENV PATH /root/.yarn/bin:${PATH}
ENV YARN_VERSION 0.21.3

RUN \
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}
apk add --no-cache --update --virtual .build-deps bash curl gnupg tar && \
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION} && \
apk del .build-deps

WORKDIR /app

Expand Down

0 comments on commit f0908ab

Please sign in to comment.