diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..157c912 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Use the Node.js 14 base image +FROM node:14 + +# Set the working directory inside the container +WORKDIR /app + +# Clone the repository +RUN git clone https://github.com/vivekteega/economicsystem-tokenroom . + +# Install dependencies +RUN npm install + +# Copy sheet_data.json and access_token.json to the "config" folder +COPY $ACCESS_TOKEN_PATH . +COPY $SHEET_DATA_PATH . + +# Set the environment variable for the port +ENV PORT=3000 + +# Expose the port specified in the environment variable +EXPOSE $PORT + +# Start the application +ENTRYPOINT ["npm", "start"]