Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cursorweb committed Jan 10, 2024
1 parent 4502b2f commit c9b1fb4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
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"]

0 comments on commit c9b1fb4

Please sign in to comment.