Created dockerfile for the API
This commit is contained in:
parent
1f61144f28
commit
f3956ed45c
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -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"]
|
||||||
Loading…
Reference in New Issue
Block a user