You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
13 lines
332 B
FROM golang:1.12-alpine as builder
|
|
RUN apk add --no-cache git make rsync nodejs npm
|
|
WORKDIR /go/notes
|
|
COPY . .
|
|
RUN make install-deps all
|
|
|
|
FROM alpine:latest
|
|
VOLUME /data
|
|
EXPOSE 8050
|
|
COPY --from=builder /go/notes/build/ /
|
|
ENTRYPOINT ["/notes"]
|
|
CMD ["--data","/data","--allow-file-uploads","--max-upload-mb","10","--host","0.0.0.0"]
|