Skip to content

Commit

Permalink
Remove nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekLogan committed Aug 14, 2024
1 parent 3c7f587 commit 2c0c20b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ RUN npm run build
FROM python:3.10-slim
RUN mkdir /app

ENV INTERNAL_NEUROGLANCER_ADDRESS=0.0.0.0
ENV INTERNAL_NEUROGLANCER_ADDRESS=localhost
ENV INTERNAL_NEUROGLANCER_PORT=8050
ENV INTERNAL_SERVER_PORT=8085

ENV DATABASE_URL=https://ntracer2.cai-lab.org/data2/
ENV PRECOMPUTED_URL=precomputed://https://ntracer2.cai-lab.org/data2/
ENV PRECOMPUTED_URL_DOCKER=precomputed://https://ntracer2.cai-lab.org/data2/
ENV PRECOMPUTED_ANNOTATION_URL=precomputed://https://ntracer2.cai-lab.org/data2/
ENV DATABASE_URL=https://sonic2.cai-lab.org/data2/
ENV PRECOMPUTED_URL=precomputed://https://sonic2.cai-lab.org/data2/
ENV PRECOMPUTED_URL_DOCKER=precomputed://https://sonic2.cai-lab.org/data2/
ENV PRECOMPUTED_ANNOTATION_URL=precomputed://https://sonic2.cai-lab.org/data2/

ENV NEUROGLANCER_TOKEN=cailab1357

Check warning on line 34 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "NEUROGLANCER_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ENV NEUROGLANCER_PORT=8050
Expand All @@ -41,8 +41,6 @@ ENV PATH=/root/.local/bin:$PATH
RUN apt-get update && apt-get install -y --no-install-recommends libx264-dev
RUN apt-get install -y nginx

COPY nginx.conf /etc/nginx/sites-available/default

COPY backend /app
#COPY --from=db-builder /app/a.out /app/db-server
COPY --from=backend-builder /app/algorithm/astar/*.so ./app/algorithm/astar/
Expand All @@ -55,6 +53,5 @@ WORKDIR /app

EXPOSE 8085
EXPOSE 8050
EXPOSE 80

CMD ["python", "main.py"]
13 changes: 0 additions & 13 deletions nginx.conf

This file was deleted.

0 comments on commit 2c0c20b

Please sign in to comment.