Front: Fix Web Build + Improve CI (#302)

Co-authored-by: Clément Le Bihan <clement.lebihan773@gmail.com>
This commit is contained in:
Arthur Jamet
2023-10-03 14:56:09 +02:00
committed by GitHub
parent 576675411a
commit d99d134382
4 changed files with 34 additions and 12 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ RUN yarn global add expo-cli
RUN yarn global add sharp-cli
COPY package.json yarn.lock ./
RUN yarn install --immutable
RUN expo install
COPY . .
@@ -17,7 +18,7 @@ ENV EXPO_PUBLIC_API_URL=$API_URL
ARG SCORO_URL
ENV EXPO_PUBLIC_API_URL=$SCORO_URL
RUN yarn tsc && expo build:web
RUN yarn tsc && npx expo export:web
# Serve the app
FROM nginx:1.21-alpine