Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12338075
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 7931788..0e5e521 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,48 +1,48 @@
# Build image
-FROM golang:1.21-alpine3.18 as build
+FROM golang:1.21-alpine3.18 AS build
LABEL org.opencontainers.image.source="https://github.com/writefreely/writefreely"
LABEL org.opencontainers.image.description="WriteFreely is a clean, minimalist publishing platform made for writers. Start a blog, share knowledge within your organization, or build a community around the shared act of writing."
RUN apk -U upgrade \
&& apk add --no-cache nodejs npm make g++ git \
&& npm install -g less less-plugin-clean-css \
&& mkdir -p /go/src/github.com/writefreely/writefreely
WORKDIR /go/src/github.com/writefreely/writefreely
COPY . .
RUN cat ossl_legacy.cnf > /etc/ssl/openssl.cnf
ENV GO111MODULE=on
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN make build \
&& make ui \
&& mkdir /stage \
&& cp -R /go/bin \
/go/src/github.com/writefreely/writefreely/templates \
/go/src/github.com/writefreely/writefreely/static \
/go/src/github.com/writefreely/writefreely/pages \
/go/src/github.com/writefreely/writefreely/keys \
/go/src/github.com/writefreely/writefreely/cmd \
/stage
# Final image
FROM alpine:3.18.4
RUN apk -U upgrade \
&& apk add --no-cache openssl ca-certificates
COPY --from=build --chown=daemon:daemon /stage /go
WORKDIR /go
VOLUME /go/keys
EXPOSE 8080
USER daemon
ENTRYPOINT ["cmd/writefreely/writefreely"]
HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \
- CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
\ No newline at end of file
+ CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 15, 7:40 AM (5 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3480022
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment