2023-05-02 14:59:29 -04:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
2024-03-11 13:32:23 -04:00
|
|
|
# Setup
|
|
|
|
|
2023-05-02 14:59:29 -04:00
|
|
|
RUN apt-get update
|
2024-01-16 20:19:18 -05:00
|
|
|
RUN apt-get install curl -y
|
2023-05-02 14:59:29 -04:00
|
|
|
|
2024-01-16 20:19:18 -05:00
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
|
|
|
RUN apt-get install nodejs git -y
|
2023-05-02 14:59:29 -04:00
|
|
|
|
|
|
|
RUN git config --global user.name "Admin"
|
|
|
|
RUN git config --global user.email noemail@example.com
|
|
|
|
|
2024-03-12 12:25:28 -04:00
|
|
|
# Prep Shared
|
2024-03-11 13:32:23 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir shared
|
2024-03-12 12:25:28 -04:00
|
|
|
WORKDIR /app/shared
|
2024-03-12 12:37:19 -04:00
|
|
|
COPY ./shared/package*.json ./
|
|
|
|
RUN npm ci
|
2024-03-12 12:25:28 -04:00
|
|
|
COPY ./shared/ .
|
2024-03-12 12:37:19 -04:00
|
|
|
RUN npm run build
|
2024-03-11 13:32:23 -04:00
|
|
|
|
2024-03-12 12:37:19 -04:00
|
|
|
# Prep Web
|
2024-03-11 13:32:23 -04:00
|
|
|
|
2024-03-12 12:37:19 -04:00
|
|
|
RUN mkdir web
|
2024-03-11 13:32:23 -04:00
|
|
|
WORKDIR /app/web
|
2024-03-12 12:37:19 -04:00
|
|
|
COPY ./web/package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY ./web/ .
|
|
|
|
|
|
|
|
# Env/Build/Run
|
2023-05-02 14:59:29 -04:00
|
|
|
|
|
|
|
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"]
|