mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 11:30:18 +00:00
5b393309a5
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.
15 lines
250 B
Docker
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"]
|