Adding script CI
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
afd4f29102
commit
7be853079d
@ -0,0 +1,23 @@
|
||||
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 script/package*.json ./script/
|
||||
RUN npm install ./script
|
||||
|
||||
COPY script ./script/
|
||||
COPY common ./common/
|
||||
RUN touch common/.env
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 80
|
||||
|
||||
# Command to run the application
|
||||
CMD ["python3", "common/set-env-var.py"]
|
||||
CMD ["node", "--env-file=common/.env" , "script/app.js"]
|
Loading…
Reference in new issue