mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2026-07-14 06:36:38 +10:00
23 lines
461 B
Docker
23 lines
461 B
Docker
# Use node.js as base image
|
|
FROM node:latest
|
|
|
|
# Set the working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package.json and package-lock.json to the working directory
|
|
COPY package*.json ./
|
|
|
|
# Install the dependencies
|
|
RUN npm install
|
|
|
|
# Copy the source code to the working directory (except the files in .dockerignore)
|
|
COPY . .
|
|
|
|
# Copy the .env.copy file to .env
|
|
RUN cp .env.copy .env
|
|
|
|
# Expose the port
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
CMD ["npm", "run", "buy"] |