-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
5 additions
and
18 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,36 +1,23 @@ | ||
FROM python:3.11 | ||
|
||
# Install dependencies | ||
WORKDIR / | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
curl \ | ||
wget \ | ||
zip \ | ||
unzip \ | ||
tree && \ | ||
# Install Node.js | ||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
apt-get install -y --no-install-recommends nodejs && \ | ||
# Clean up | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Verify Node.js and npm installation | ||
RUN node --version && npm --version | ||
|
||
WORKDIR /app | ||
|
||
# Copy package files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the application | ||
COPY . . | ||
|
||
# Build the application | ||
RUN npm run build | ||
RUN npx --yes create-react-app frontend && \ | ||
cd frontend && \ | ||
npm install react-router-dom | ||
|
||
# Expose port 3000 | ||
EXPOSE 3000 |