Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
sshh12 committed Nov 10, 2024
1 parent d484885 commit 3f226f1
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions images/VanillaReactDockerFile
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

0 comments on commit 3f226f1

Please sign in to comment.