You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
567 B
24 lines
567 B
FROM node:latest
|
|
|
|
# Install Python and pip
|
|
RUN apt-get update && \
|
|
apt-get install -y python3 python3-pip && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set working directory inside the container
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY callback-server/package*.json ./callback-server/
|
|
RUN npm install ./callback-server
|
|
|
|
COPY callback-server ./callback-server/
|
|
COPY common ./common/
|
|
RUN touch common/.env
|
|
RUN python3 common/set-env-var.py
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 80
|
|
|
|
# Command to run the application
|
|
CMD ["node", "--env-file=common/.env" , "callback-server/app.js"]
|