added package for build
This commit is contained in:
@@ -42,11 +42,12 @@ services:
|
||||
front:
|
||||
build:
|
||||
context: ./front
|
||||
args:
|
||||
- API_URL=${API_URL}
|
||||
- SCORO_URL=${SCORO_URL}
|
||||
dockerfile: Dockerfile.dev
|
||||
network_mode: "host"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "19006:19006"
|
||||
volumes:
|
||||
- ./front:/app
|
||||
depends_on:
|
||||
- "back"
|
||||
env_file:
|
||||
|
||||
@@ -2,9 +2,11 @@ FROM node:16-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN yarn global add expo-cli
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install
|
||||
RUN yarn global add npx expo-cli
|
||||
RUN npx expo install
|
||||
|
||||
|
||||
ENV DEVAPIURL http://back:3000
|
||||
CMD expo start --web
|
||||
CMD npx expo start --web
|
||||
Reference in New Issue
Block a user