parent
bca11bdf87
commit
30cb696dff
|
@ -3,5 +3,5 @@
|
|||
cd frontend
|
||||
npm run dist
|
||||
go mod vendor
|
||||
go run backend/cmd/fasten/fasten.go start --config ./config.yaml --debug
|
||||
go run backend/cmd/fasten/fasten.go start --config ./config.example.yaml --debug
|
||||
```
|
||||
|
|
15
Dockerfile
15
Dockerfile
|
@ -15,13 +15,20 @@ RUN go mod vendor \
|
|||
&& go generate ./... \
|
||||
&& go vet ./... \
|
||||
&& go test ./...
|
||||
|
||||
RUN CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
|
||||
|
||||
FROM gcr.io/distroless/static-debian11
|
||||
# create folder structure
|
||||
RUN mkdir -p /opt/fasten/db \
|
||||
mkdir -p /opt/fasten/web \
|
||||
mkdir -p /opt/fasten/config
|
||||
|
||||
COPY --from=frontend-build /usr/src/fastenhealth/dist /opt/fasten/dist
|
||||
|
||||
|
||||
FROM gcr.io/distroless/static-debian11
|
||||
WORKDIR /opt/fasten/
|
||||
COPY --from=backend-build /opt/fasten/ /opt/fasten/
|
||||
COPY --from=frontend-build /usr/src/fastenhealth/dist /opt/fasten/web
|
||||
COPY --from=backend-build /go/bin/fasten /opt/fasten/fasten
|
||||
COPY LICENSE.md /opt/fasten/LICENSE.md
|
||||
COPY config.yaml /opt/fasten/config.yaml
|
||||
COPY config.yaml /opt/fasten/config/config.yaml
|
||||
CMD ["/opt/fasten/fasten"]
|
||||
|
|
|
@ -10,7 +10,7 @@ web:
|
|||
# used to encrypt/validate JWT session key (used for authentication)
|
||||
encryptionkey: 'changethissupersecretkey'
|
||||
listen:
|
||||
port: 9090
|
||||
port: 8080
|
||||
host: 0.0.0.0
|
||||
|
||||
# if you're using a reverse proxy like apache/nginx, you can override this value to serve fasten on a subpath.
|
||||
|
@ -21,8 +21,7 @@ web:
|
|||
src:
|
||||
# the location on the filesystem where webapp javascript + css is located
|
||||
frontend:
|
||||
# path: /opt/fasten/web
|
||||
path: ./dist
|
||||
path: /opt/fasten/web
|
||||
|
||||
log:
|
||||
file: '' #absolute or relative paths allowed, eg. web.log
|
||||
|
|
Loading…
Reference in New Issue