forked from soulpage/fullstack-assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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"] |