This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
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.
Merge pull request #44 from dabumana/developer
v1.0.2
- Loading branch information
Showing
9 changed files
with
157 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
FROM golang:1.19 | ||
|
||
WORKDIR /usr/local/bin | ||
FROM alpine:latest | ||
# Define local binary folder | ||
ENV APP_HOME /usr/local/bin/caos | ||
|
||
# Update local package manager and install required dependencies | ||
RUN apk update && apk upgrade | ||
RUN apk add git musl-dev make pkgconfig gcc go | ||
RUN apk add curl=7.79.1-r1 curl-dev=7.79.1-r1 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.12/main | ||
# Create source folder and clone the repository | ||
RUN mkdir -p ${APP_HOME} | ||
RUN git clone https://github.com/dabumana/caos ${APP_HOME} | ||
|
||
RUN cp ${APP_HOME}/src/bin/caos/* /usr/local/bin | ||
RUN git clone https://github.com/dabumana/caos ${APP_HOME}/source | ||
WORKDIR ${APP_HOME}/source | ||
# Build the application and delete the source folder | ||
RUN make build | ||
RUN cp ${APP_HOME}/source/src/bin/caos/caos /bin | ||
RUN rm -rf ${APP_HOME} | ||
|
||
# Setup argument variables | ||
ARG KEY | ||
ARG ZKEY | ||
# Initialize environment variables | ||
ENV API_KEY $KEY | ||
ENV ZERO_API_KEY $ZERO-KEY | ||
# Define entrypoint | ||
ENTRYPOINT [ "caos" ] |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"API_KEY","" | ||
"ZERO_API_KEY","" |