Skip to content

Commit

Permalink
feat: using our official image for armory cli deployment (#196)
Browse files Browse the repository at this point in the history
* feat: using our official image for armory cli deployment

* removed not used files

* usability tweaks
  • Loading branch information
Greg-At-Armory authored Oct 11, 2023
1 parent be6c3ed commit 781995d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 52 deletions.
19 changes: 5 additions & 14 deletions Dockerfile
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
3 changes: 0 additions & 3 deletions entrypoint.sh

This file was deleted.

35 changes: 0 additions & 35 deletions project.yaml

This file was deleted.

0 comments on commit 781995d

Please sign in to comment.