mirror of
https://github.com/jrasanen/writefreely-docker.git
synced 2025-02-05 08:52:46 +02:00
Support building from a fork of WriteFreely
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
f4921a9a01
commit
d6f3bce552
1 changed files with 9 additions and 8 deletions
17
Dockerfile
17
Dockerfile
|
@ -18,25 +18,26 @@
|
||||||
FROM golang:1.13-alpine as build
|
FROM golang:1.13-alpine as build
|
||||||
|
|
||||||
ARG WRITEFREELY_VERSION=v0.11.2
|
ARG WRITEFREELY_VERSION=v0.11.2
|
||||||
|
ARG WRITEFREELY_FORK=writeas/writefreely
|
||||||
|
|
||||||
RUN apk add --update nodejs nodejs-npm make g++ git sqlite-dev
|
RUN apk add --update nodejs nodejs-npm make g++ git sqlite-dev
|
||||||
RUN npm install -g less less-plugin-clean-css
|
RUN npm install -g less less-plugin-clean-css
|
||||||
RUN go get -u github.com/jteeuwen/go-bindata/...
|
RUN go get -u github.com/jteeuwen/go-bindata/...
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/writeas
|
RUN mkdir -p /go/src/github.com/${WRITEFREELY_FORK}
|
||||||
RUN git clone https://github.com/writeas/writefreely.git /go/src/github.com/writeas/writefreely -b ${WRITEFREELY_VERSION}
|
RUN git clone https://github.com/${WRITEFREELY_FORK}.git /go/src/github.com/${WRITEFREELY_FORK} -b ${WRITEFREELY_VERSION}
|
||||||
WORKDIR /go/src/github.com/writeas/writefreely
|
WORKDIR /go/src/github.com/${WRITEFREELY_FORK}
|
||||||
|
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
RUN make build \
|
RUN make build \
|
||||||
&& make ui
|
&& make ui
|
||||||
RUN mkdir /stage && \
|
RUN mkdir /stage && \
|
||||||
cp -R /go/bin \
|
cp -R /go/bin \
|
||||||
/go/src/github.com/writeas/writefreely/templates \
|
/go/src/github.com/${WRITEFREELY_FORK}/templates \
|
||||||
/go/src/github.com/writeas/writefreely/static \
|
/go/src/github.com/${WRITEFREELY_FORK}/static \
|
||||||
/go/src/github.com/writeas/writefreely/pages \
|
/go/src/github.com/${WRITEFREELY_FORK}/pages \
|
||||||
/go/src/github.com/writeas/writefreely/keys \
|
/go/src/github.com/${WRITEFREELY_FORK}/keys \
|
||||||
/go/src/github.com/writeas/writefreely/cmd \
|
/go/src/github.com/${WRITEFREELY_FORK}/cmd \
|
||||||
/stage && \
|
/stage && \
|
||||||
mv /stage/cmd/writefreely/writefreely /stage
|
mv /stage/cmd/writefreely/writefreely /stage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue