-
Notifications
You must be signed in to change notification settings - Fork 4
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
21 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use the official Python image as the base image | ||
FROM node:18-alpine3.19 | ||
|
||
# Set label | ||
LABEL org.opencontainers.image.source="https://github.com/cursorweb/Cycle-Bot-Game" | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the poetry.lock and pyproject.toml files to the container | ||
COPY package.json package-lock.json /app/ | ||
|
||
# Install project dependencies using poetry | ||
RUN npm i | ||
RUN npm run prod | ||
|
||
# Copy the rest of the project files to the container | ||
COPY . /app | ||
|
||
# Run main.py | ||
CMD ["npm start"] |