added package for build

This commit is contained in:
Clément Le Bihan
2023-01-27 02:33:25 +09:00
parent 2c0741290a
commit da2f5966b3
2 changed files with 9 additions and 6 deletions

View File

@@ -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:

View 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