A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

33 righe
780 B

  1. # Build image
  2. FROM golang:1.11.2-alpine3.8 as build
  3. RUN apk add --update nodejs nodejs-npm make g++ git sqlite-dev
  4. RUN npm install -g less less-plugin-clean-css
  5. RUN mkdir -p /go/src/github.com/writeas/writefreely
  6. WORKDIR /go/src/github.com/writeas/writefreely
  7. COPY . .
  8. RUN make build \
  9. && make ui
  10. RUN mkdir /stage && \
  11. cp -R /go/bin \
  12. /go/src/github.com/writeas/writefreely/templates \
  13. /go/src/github.com/writeas/writefreely/static \
  14. /go/src/github.com/writeas/writefreely/pages \
  15. /go/src/github.com/writeas/writefreely/keys \
  16. /stage
  17. # Final image
  18. FROM alpine:3.8
  19. RUN apk add --no-cache openssl ca-certificates
  20. COPY --from=build --chown=daemon:daemon /stage /go
  21. WORKDIR /go
  22. VOLUME /go/keys
  23. EXPOSE 8080
  24. USER daemon
  25. CMD ["bin/writefreely"]