Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:7.6
MAINTAINER Icalia Labs <weare@icalialabs.com>

WORKDIR /usr/src/app

# Clean up un-needed files:
RUN rm -rf .dockerignore Dockerfile tmp/cache/* tmp/pids/* log/* docker-compose.yml *.env .env node_modules/


RUN apt-get update && apt-get install -y curl apt-transport-https && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn

ADD . /usr/src/app

RUN yarn install && \
npm run build

EXPOSE 3000

CMD ["npm", "run", "start:prod"]
2 changes: 1 addition & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Icalia Labs <weare@icalialabs.com>
WORKDIR /usr/src/app

# Clean up un-needed files:
RUN rm -rf .dockerignore Dockerfile tmp/cache/* tmp/pids/* log/* docker-compose.yml *.env .env
RUN rm -rf .dockerignore Dockerfile tmp/cache/* tmp/pids/* log/* docker-compose.yml *.env .env node_modules/


RUN apt-get update && apt-get install -y curl apt-transport-https && \
Expand Down