Skip to content

Commit

Permalink
test 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Uj5Ghare authored Nov 16, 2024
1 parent 811aaa7 commit dfe70c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM python:3.11-alpine
MAINTAINER ujwal.pachghare
WORKDIR /usr/bin/app
ENV PIP_NO_CACHE_DIR=1
ENV PIP_NO_CACHE_DIR=1 \
FRONTEND_URL="http://127.0.0.1:3000" \
BACKEND_URL="http://127.0.0.1:8000" \
BE_ADMIN_EMAIL="[email protected]" \
BE_ADMIN_PASSWORD="admin" \
DJANGO_SECRET_KEY="YWRtaW4="
RUN rm -rf /var/lib/apt/lists/*
COPY ./dependencies.txt .
ADD dependencies.txt .
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r dependencies.txt
COPY . .
Expand Down
5 changes: 3 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18.20.4-slim AS base
LABEL stage="install"
WORKDIR /install
COPY ./package.json .
COPY package.json .
RUN npm install -g [email protected]
RUN npm install

Expand All @@ -18,8 +18,9 @@ FROM node:18.20-alpine
LABEL stage="deploy"
MAINTAINER ujwal.pachghare
WORKDIR /usr/bin/app
ENV NEXT_PUBLIC_API_BASE_URL="http://127.0.0.1:8000"
COPY --from=build /build/node_modules ./node_modules
COPY --from=build /build/pages ./pages
COPY --from=build /build/.next ./.next
COPY . .
EXPOSE 3000
CMD ["npm","start"]

0 comments on commit dfe70c0

Please sign in to comment.