-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(): Fix Dockerfile CMD to take variables (#77)
Signed-off-by: Udit Gaurav <[email protected]>
- Loading branch information
1 parent
e11c93a
commit bb84046
Showing
2 changed files
with
19 additions
and
6 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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
FROM ubuntu:16.04 | ||
|
||
ARG TARGETARCH | ||
ENV EXPORTER=/exporter-${TARGETARCH} | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/cache/apk/* | ||
|
||
COPY ./exporter-${TARGETARCH} / | ||
COPY .$EXPORTER / | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["/exporter-${TARGETARCH}"] | ||
|
||
|
||
|
||
|
||
CMD ["sh", "-c","$EXPORTER"] | ||
|
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