Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10493984
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
index 81318a7..ed0a3a2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,33 +1,32 @@
+# Build image
FROM golang:1.11.2-alpine3.8 as build
RUN apk add --update nodejs nodejs-npm make g++ git sqlite-dev
-RUN npm install -g less
-RUN npm install -g less-plugin-clean-css
+RUN npm install -g less less-plugin-clean-css
-WORKDIR /go/src/app
+RUN mkdir -p /go/src/github.com/writeas/writefreely
+WORKDIR /go/src/github.com/writeas/writefreely
COPY . .
-RUN make assets
-RUN make install
-RUN make ui
-RUN make deps
-
+RUN make build \
+ && make ui
RUN mkdir /stage && \
cp -R /go/bin \
- /go/src/app/templates \
- /go/src/app/static \
- /go/src/app/pages \
- /go/src/app/keys \
+ /go/src/github.com/writeas/writefreely/templates \
+ /go/src/github.com/writeas/writefreely/static \
+ /go/src/github.com/writeas/writefreely/pages \
+ /go/src/github.com/writeas/writefreely/keys \
/stage
+# Final image
FROM alpine:3.8
RUN apk add --no-cache openssl ca-certificates
COPY --from=build --chown=daemon:daemon /stage /go
WORKDIR /go
VOLUME /go/keys
EXPOSE 8080
USER daemon
CMD ["bin/writefreely"]
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Mar 6, 3:10 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3168171
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment