Commit 720f3160 authored by Pinon Gregory's avatar Pinon Gregory 🦉
Browse files

modified Dockerfile to install required libs

parent fcf5932b
......@@ -4,7 +4,7 @@ WORKDIR /app
COPY package*.json ./
RUN npm install && \
RUN npm install && npm audit fix && \
npm rebuild bcrypt --build-from-source
COPY . .
......
#FROM docker.pkg.github.com/sdarlington/ignite/ignite-arm:2.8.1
FROM apacheignite/ignite
FROM ghcr.io/sdarlington/ignite-arm:2.12.0
#FROM apacheignite/ignite
# Settings
ENV IGNITE_HOME /opt/ignite/apache-ignite
ENV OPTION_LIBS ignite-rest-http
......@@ -7,7 +8,7 @@ WORKDIR /opt/ignite
#Copy
COPY default-config.xml $IGNITE_HOME/config
COPY start.sh $IGNITE_HOME/config
COPY start.sh $IGNITE_HOME
# Entry point
CMD $IGNITE_HOME/start.sh
......
......@@ -8,7 +8,7 @@ WORKDIR /app
# Install app dependencies
COPY package.json package-lock.json /app/
RUN cd /app && npm set progress=false && npm install
RUN cd /app && npm set progress=false && npm install && npm audit fix
# Copy project files into the docker image
COPY . /app
......@@ -25,4 +25,4 @@ COPY --from=builder /app/dist/frontend-supervision /usr/share/nginx/html
COPY default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
CMD ["nginx", "-g", "daemon off;"]
FROM python:3
RUN apt-get update && apt-get -y install libgeos-dev
ADD Database_feeder.py /
RUN pip install pyserial
RUN pip install pyignite
......
......@@ -8,12 +8,16 @@ COPY *.py ./
RUN npm install
RUN npm audit fix
RUN apt-get update
RUN apt-get install -y python3 python3-pip
RUN pip3 install cython
RUN pip3 install numpy
COPY . .
CMD [ "node", "index.js" ]
\ No newline at end of file
CMD [ "node", "index.js" ]
......@@ -7,6 +7,7 @@ WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install --prod
RUN npm audit fix
# Bundle app source
COPY . /usr/src/app
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment