Skip to content

Commit

Permalink
Cleanup dockerfile a little
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jan 19, 2025
1 parent d7ee350 commit 7594665
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
#FROM node:20 AS client
#
#WORKDIR /app
#
#COPY ./tracker/package.json ./tracker/yarn.lock ./
#COPY \
# ./tracker/.browserslistrc \
# ./tracker/karma.conf.js \
# ./tracker/declarations.d.ts \
# ./tracker/postcss.config.js \
# ./tracker/prettier.config.js \
# ./tracker/tsconfig.json \
# ./tracker/.yarnrc.yml \
# ./tracker/webpack.config.js \
# ./
#COPY ./tracker/bundles bundles
#COPY ./tracker/design design
#COPY ./tracker/tracker tracker
#COPY ./tracker/.yarn .yarn
#
#RUN corepack enable
#
#RUN yarn install
#
#RUN yarn build

FROM python:3.12

WORKDIR /app
Expand Down Expand Up @@ -54,20 +28,18 @@ COPY ./tracker/bundles bundles
COPY ./tracker/design design
COPY ./tracker/.yarn .yarn

#COPY --from=client /app/tracker/ tracker
COPY ./tracker/tracker tracker
COPY ./tracker/setup.py ./
RUN pip install daphne
#RUN pip install gunicorn
# We need edit mode for some reason, or the templates don't get compiled in properly
# Likely something about this setup but at least it works
RUN pip install -e .

WORKDIR /app/tracker_development
COPY ./settings.py ./wsgi.py ./asgi.py ./local_statics.py ./routing.py ./urls.py /app/tracker_development/tracker_development/
COPY ./entrypoint.sh ./
RUN mkdir db

#RUN pip install ../donation-tracker

RUN apt update
RUN apt install -y locales
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
Expand Down

0 comments on commit 7594665

Please sign in to comment.