Skip to content

Commit

Permalink
Updated Dockerfile to adapt to new project's name
Browse files Browse the repository at this point in the history
  • Loading branch information
odiazdom committed Apr 11, 2019
1 parent 8ddd9a3 commit f54c4fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM alpine:3.6
ARG DOWNLOAD_PACKAGES="bash python3 py-pip"
ARG PY_LIBRARIES="python-gitlab click click_help_colors"

ARG GLABCTL_USER=pgcli
ARG GLABCTL_GROUP=pgcli
ARG GLABCTL_USER=glabctl
ARG GLABCTL_GROUP=glabctl
ARG GLABCTL_UID=65530
ARG GLABCTL_GID=65530
ARG GLABCTL_PATH="/opt/pgcli"
ARG GLABCTL_PATH="/opt/glabctl"

# Resolve dependencies
RUN apk update && \
Expand All @@ -19,7 +19,7 @@ RUN mkdir -p $GLABCTL_PATH
COPY functions/ $GLABCTL_PATH/functions
COPY main.py $GLABCTL_PATH/main.py
RUN chown -R $GLABCTL_UID:$GLABCTL_GID $GLABCTL_PATH && \
ln -s $GLABCTL_PATH/main.py /usr/bin/pgcli
ln -s $GLABCTL_PATH/main.py /usr/bin/glabctl

# Delete __pycache__ in case it exists
RUN rm -rf $GLABCTL_PATH/functions/__pycache__
Expand All @@ -29,4 +29,4 @@ RUN addgroup -g ${GLABCTL_GID} ${GLABCTL_GROUP} \

USER $GLABCTL_USER

ENTRYPOINT ["pgcli"]
ENTRYPOINT ["glabctl"]

0 comments on commit f54c4fc

Please sign in to comment.