2023-05-02 14:59:29 -04:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install curl -y
|
|
|
|
|
2023-09-07 13:00:25 -04:00
|
|
|
RUN apt-get install -y ca-certificates curl gnupg
|
|
|
|
RUN mkdir -p /etc/apt/keyrings
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
2023-10-18 14:21:09 -04:00
|
|
|
ENV NODE_MAJOR=18
|
2023-09-07 13:00:25 -04:00
|
|
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install nodejs -y
|
2023-05-02 14:59:29 -04:00
|
|
|
|
|
|
|
RUN apt-get install git -y
|
|
|
|
|
|
|
|
RUN git config --global user.name "Admin"
|
|
|
|
|
|
|
|
RUN git config --global user.email noemail@example.com
|
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
ENV PORT=3000
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
EXPOSE 7006
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
2023-10-15 14:17:45 -04:00
|
|
|
RUN chmod +x ./docker/entry.sh
|
|
|
|
|
|
|
|
CMD ["./docker/entry.sh"]
|