forked from lambdaspace/website-dockerfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gulp update, use alpine node, update haproxy
- Loading branch information
Showing
3 changed files
with
44 additions
and
4 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,30 @@ | ||
############################################################ | ||
# Dockerfile for gulp and bower | ||
############################################################ | ||
|
||
# Use the slim Node.js base image | ||
FROM node:8-alpine | ||
|
||
# File Author / Maintainer | ||
MAINTAINER alexdor | ||
|
||
################## BEGIN INSTALLATION ###################### | ||
|
||
# Update repositories and install git | ||
RUN apk update &&N apk add git | ||
|
||
# Clone repo | ||
RUN git clone https://github.com/lambdaspace/new_website.git | ||
|
||
RUN yarn global add bower gulp | ||
|
||
# Install dependencies | ||
WORKDIR new_website | ||
# ADD ./node_modules node_modules/ | ||
# ADD ./src/components src/components/ | ||
RUN yarn install | ||
RUN bower install --allow-root | ||
|
||
################## INSTALLATION END ###################### | ||
|
||
CMD /usr/local/bin/gulp --production /new_website/ |
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