Skip to content

Commit

Permalink
fix: run container commands as default user
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 12, 2021
1 parent 4df290a commit a9e3e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
&& rm -rf /wheels/


COPY --chown=django:django ./entrypoint /entrypoint
COPY ./entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint

# copy application code to WORKDIR
COPY --from=client-builder --chown=django:django ${APP_HOME} ${APP_HOME}
COPY --from=client-builder ${APP_HOME} ${APP_HOME}

# set up cloud SQL proxy
COPY --chown=django:django ./install_cloudsql_proxy.sh /install_cloudsql_proxy.sh
COPY ./install_cloudsql_proxy.sh /install_cloudsql_proxy.sh
RUN sed -i 's/\r$//g' /install_cloudsql_proxy.sh
RUN chmod +x /install_cloudsql_proxy.sh
RUN /install_cloudsql_proxy.sh
Expand Down

0 comments on commit a9e3e0b

Please sign in to comment.