Skip to content

Commit

Permalink
Fix docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jash Parekh committed Dec 18, 2021
1 parent f93ae70 commit fe1cc3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ WORKDIR /app

# We are installing a dependency here directly into our app source dir
RUN pip install --target=/app -r plugin_scripts/requirements.lock

# A distroless container image with Python and some basics like SSL certificates
# https://github.com/GoogleContainerTools/distroless
FROM gcr.io/distroless/python3-debian10
COPY --from=builder /app/plugin_scripts /app/plugin_scripts
WORKDIR /app
ENV PYTHONPATH /app

CMD ["/app/plugin_scripts/__init__.py"]
CMD ["python", "/app/plugin_scripts/__init__.py"]
4 changes: 4 additions & 0 deletions plugin_scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from plugin_scripts.deploy import main

if __name__ == "__main__":
main()
4 changes: 0 additions & 4 deletions plugin_scripts/__main__.py

This file was deleted.

1 change: 1 addition & 0 deletions plugin_scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def _deploy():


def main():
print('hi')
_validate_env_variables()
if _validate_if_path_exists():
_deploy()
Expand Down

0 comments on commit fe1cc3c

Please sign in to comment.