Update app and ignore local artifacts
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# Build the Expo Router web bundle. Expo replaces EXPO_PUBLIC_* values at export time.
|
||||
FROM node:22-bookworm-slim AS web-build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
ARG EXPO_PUBLIC_API_URL=/api/v1
|
||||
ENV EXPO_PUBLIC_API_URL=$EXPO_PUBLIC_API_URL
|
||||
RUN npx expo export --platform web
|
||||
|
||||
# Serve the static bundle and proxy same-origin API traffic.
|
||||
FROM nginx:1.27-alpine AS web
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=web-build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user