golang 1.16 > 1.19
This commit is contained in:
parent
5e91ddb6a4
commit
1aefcfe6ae
|
@ -1,5 +1,5 @@
|
||||||
# Build image
|
# Build image
|
||||||
FROM golang:1.16-alpine as build
|
FROM golang:1.19-alpine as build
|
||||||
|
|
||||||
RUN apk add --update nodejs npm make g++ git
|
RUN apk add --update nodejs npm make g++ git
|
||||||
RUN npm install -g less less-plugin-clean-css
|
RUN npm install -g less less-plugin-clean-css
|
||||||
|
@ -9,7 +9,10 @@ WORKDIR /go/src/github.com/writefreely/writefreely
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN cat ossl_legacy.cnf > /etc/ssl/openssl.cnf
|
||||||
|
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
|
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
|
||||||
RUN make build \
|
RUN make build \
|
||||||
&& make ui
|
&& make ui
|
||||||
|
@ -35,3 +38,4 @@ EXPOSE 8080
|
||||||
USER daemon
|
USER daemon
|
||||||
|
|
||||||
ENTRYPOINT ["cmd/writefreely/writefreely"]
|
ENTRYPOINT ["cmd/writefreely/writefreely"]
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
[provider_sect]
|
||||||
|
default = default_sect
|
||||||
|
legacy = legacy_sect
|
||||||
|
|
||||||
|
[default_sect]
|
||||||
|
activate = 1
|
||||||
|
|
||||||
|
[legacy_sect]
|
||||||
|
activate = 1
|
Loading…
Reference in New Issue