KeyStone commited on
Commit ·
0058346
1
Parent(s): 349aadc
Build Expo web frontend in Docker
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 1 |
+
FROM node:20 AS frontend
|
| 2 |
+
|
| 3 |
+
WORKDIR /frontend
|
| 4 |
+
|
| 5 |
+
COPY mobile/package.json ./
|
| 6 |
+
RUN npm install
|
| 7 |
+
|
| 8 |
+
COPY mobile/ .
|
| 9 |
+
RUN npx expo export --platform web
|
| 10 |
+
|
| 11 |
FROM python:3.11-slim
|
| 12 |
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|