-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile, docker-compose.yml and add .dockerignore so builds…
… are now self-contained, update README.md
- Loading branch information
1 parent
6ffee4d
commit 770d96b
Showing
4 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
dist/ | ||
.git/ | ||
.gitignore | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
FROM node:6 | ||
# Use the slim version of the latest Node LTS which includes Yarn | ||
FROM node:6.10.2-slim | ||
|
||
RUN apt-get update | ||
RUN apt-get install apt-transport-https | ||
# Docker images have no default editor so we'll use vim | ||
RUN apt-get update && apt-get install -y \ | ||
vim | ||
|
||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
|
||
RUN apt-get update | ||
RUN apt-get install yarn | ||
# Create an app directory for our app to exist in the docker container | ||
RUN mkdir -p app | ||
|
||
# Establish a directory where later commands will be run relative to in the container | ||
WORKDIR /app | ||
|
||
# Copy package.json & yarn.lock into our app directory in the container | ||
COPY package.json \ | ||
yarn.lock \ | ||
# Destination folder | ||
/app/ | ||
|
||
# Install dependencies in the container | ||
RUN yarn install | ||
|
||
# Copy all the rest of our files into the app directory in the container | ||
COPY . /app | ||
|
||
# Expose port for webpack | ||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters