writefreely/Dockerfile
Jean-Francois Arseneau 5b393309a5 Add Dockerfile and Docker Compose files
This adds the first version of a Dockerfile, built on an Alpine Linux variation of the golang image, as well as a Docker Compose file that spins up both a MariaDB and the instance. It also updates the README with instructions on how to get Write Freely running with this setup.
2018-11-13 20:24:06 -08:00

15 lines
250 B
Docker

FROM golang:1.11.2-alpine3.8
RUN apk add --update nodejs nodejs-npm make git
RUN npm install -g less
RUN npm install -g less-plugin-clean-css
WORKDIR /go/src/app
COPY . .
RUN make install
RUN make ui
RUN make deps
EXPOSE 8080
CMD ["writefreely"]