-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker build. Go modules for dependencies
- Loading branch information
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:latest as builder | ||
RUN mkdir /build | ||
ADD . /build/ | ||
WORKDIR /build | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o main . | ||
|
||
FROM alpine | ||
WORKDIR /app | ||
COPY --from=builder /build/main /app | ||
COPY --from=builder /build/static static | ||
COPY --from=builder /build/templates templates | ||
EXPOSE 8080 | ||
CMD ["./main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module github.com/jorgelbg/dissect-tester | ||
|
||
go 1.13 | ||
|
||
replace github.com/dop251/goja => github.com/andrewkroh/goja v0.0.0-20190128172624-dd2ac4456e20 | ||
|
||
require ( | ||
github.com/dlclark/regexp2 v1.2.0 // indirect | ||
github.com/dop251/goja v0.0.0-20200126140343-a7d7d4827263 // indirect | ||
github.com/dop251/goja_nodejs v0.0.0-20200128125109-2d688c7e0ac4 // indirect | ||
github.com/elastic/beats v7.5.0+incompatible | ||
github.com/elastic/go-ucfg v0.8.2 // indirect | ||
github.com/go-sourcemap/sourcemap v2.1.2+incompatible // indirect | ||
github.com/gofrs/uuid v3.2.0+incompatible // indirect | ||
github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901 // indirect | ||
github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 // indirect | ||
go.uber.org/zap v1.13.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters