-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a9836a
commit 5c86809
Showing
6 changed files
with
7 additions
and
24 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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,18 @@ | ||
ARG BUILDER_BASE_IMAGE | ||
ARG BASE_IMAGE | ||
|
||
# Stage 1 - builder | ||
FROM $BUILDER_BASE_IMAGE as builder | ||
FROM $BASE_IMAGE | ||
|
||
# Maintainer | ||
LABEL maintainer="Brennan Brouillette <[email protected]>" | ||
|
||
WORKDIR /build | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
# Build gohan api | ||
RUN go mod vendor && \ | ||
go build -ldflags="-s -w" -o gohan_api | ||
|
||
|
||
# Stage two - executioner | ||
FROM $BASE_IMAGE | ||
|
||
# Debian updates | ||
# - tabix for indexing VCFs | ||
# - other base dependencies provided by the base image | ||
|
@@ -27,11 +21,6 @@ RUN apt-get update -y && \ | |
apt-get install -y tabix && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
# Copy pre-built executable from builder stage | ||
COPY --from=builder /build/gohan_api . | ||
|
||
# Copy static workflow files | ||
COPY workflows/*.wdl /app/workflows/ | ||
|
||
|
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