-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: using our official image for armory cli deployment (#196)
* feat: using our official image for armory cli deployment * removed not used files * usability tweaks
- Loading branch information
1 parent
be6c3ed
commit 781995d
Showing
3 changed files
with
5 additions
and
52 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,14 +1,5 @@ | ||
FROM debian:10.10-slim | ||
ENV APP=/usr/local/bin/armory \ | ||
USER_UID=1001 \ | ||
USER_NAME=armory | ||
RUN apt-get update -y && apt upgrade -y \ | ||
&& apt-get install -y ca-certificates bash \ | ||
&& apt-get clean | ||
RUN adduser --disabled-password --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --uid ${USER_UID} ${USER_NAME} | ||
WORKDIR /usr/local/bin | ||
COPY ./build/dist/linux_amd64/ ./ | ||
COPY ./entrypoint.sh ./ | ||
|
||
USER ${USER_NAME} | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
FROM armory-docker-local.jfrog.io/armory-cloud/go-app | ||
COPY ./build/dist/linux_amd64/armory /opt/go-application/goapp | ||
# for 'traditional' users - make the look & feel of the container like it used to be - cli is named armory and is available via PATH | ||
ENV PATH=$PATH:/home/goapp | ||
RUN ln -s /opt/go-application/goapp /home/goapp/armory |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.