-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
1 changed file
with
12 additions
and
12 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,20 +1,20 @@ | ||
# Use an official Node runtime as the base image | ||
FROM node:14 | ||
# Use an official Python image as a base | ||
FROM python:3.9-slim | ||
|
||
# Set the working directory in the container to /app | ||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json to the working directory | ||
COPY package*.json ./ | ||
# Copy the requirements file | ||
COPY requirements.txt . | ||
|
||
# Install any needed packages specified in package.json | ||
RUN npm install | ||
# Install the dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Bundle app source inside the Docker image | ||
# Copy the application code | ||
COPY . . | ||
|
||
# Make port 8080 available to the world outside the container | ||
EXPOSE 8080 | ||
# Expose the port the application will use | ||
EXPOSE 8000 | ||
|
||
# Define the command to run the app | ||
CMD ["npm", "start"] | ||
# Run the command to start the development server | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |