Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10387504
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
994 B
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
index 2d4563d..36fd0dd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,27 +1,27 @@
FROM golang:1.12-alpine AS build
-RUN apk add nodejs nodejs-npm make g++ ca-certificates git sqlite-dev && \
+RUN apk add --update nodejs nodejs-npm make g++ ca-certificates git sqlite-dev && \
npm install -g less less-plugin-clean-css && \
go get -u github.com/jteeuwen/go-bindata/...
WORKDIR /src
COPY ./go.mod ./go.sum ./
RUN go mod download
COPY . .
RUN cd cmd/writefreely && go build -v -tags='sqlite'
RUN make assets ui
RUN mkdir -p \
/home/writefreely/static /home/writefreely/templates /home/writefreely/pages && \
cp -r templates/ pages/ static/ /home/writefreely && \
cp config.ini.example /home/writefreely/config.ini
FROM alpine AS final
# TODO user nobody or similar
COPY --from=build /src/cmd/writefreely/writefreely /bin
COPY --from=build /home /home
EXPOSE 8080
WORKDIR /home/writefreely
ENTRYPOINT [ "writefreely" ]
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 12:58 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3106692
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment