summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-12-05 04:41:38 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-05 04:41:38 +0100
commitd9c67a8c903fa9927bad28f5fcb816f89f8200eb (patch)
treeb652427ec0da37baf13ea27fd5e0a99ed5c656ec /Dockerfile
parentFixed topics margin (#9248) (diff)
downloadforgejo-d9c67a8c903fa9927bad28f5fcb816f89f8200eb.tar.xz
forgejo-d9c67a8c903fa9927bad28f5fcb816f89f8200eb.zip
Add Node.js build dep, remove built js/css files (#9114)
- Added Node.js as build dependency and removes build files from git. - Added version checks for both Go and Node.js. - Overhauled the js/css make target to only run when needed. - Merged the `generate` make target into `build` as per suggestion. Fixes: https://github.com/go-gitea/gitea/issues/6782 Fixes: https://github.com/go-gitea/gitea/issues/9216
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index cb1b2f71e4..79434bde49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,7 +11,7 @@ ARG TAGS="sqlite sqlite_unlock_notify"
ENV TAGS "bindata $TAGS"
#Build deps
-RUN apk --no-cache add build-base git
+RUN apk --no-cache add build-base git nodejs npm
#Setup repo
COPY . ${GOPATH}/src/code.gitea.io/gitea