
* Add tabs to apps page * Detect app in tunnel * Disable manifest install if Saleor Apps context * Show only app origin instead full manifest * Add copy manifest feature * Update tests * Add ENV with marketplace endpoint for fetching saleor apps * Fetch Saleor apps for Marketplace and display them in the tab, otherwise hide * Code review fixes * Extract translation messages * Update tests
19 lines
619 B
Docker
19 lines
619 B
Docker
FROM node:14 as builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
ARG APP_MOUNT_URI
|
|
ARG API_URI
|
|
ARG MARKETPLACE_URL
|
|
ARG SALEOR_APPS_ENDPOINT
|
|
ARG STATIC_URL
|
|
ENV API_URI ${API_URI:-http://localhost:8000/graphql/}
|
|
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/dashboard/}
|
|
ENV STATIC_URL ${STATIC_URL:-/dashboard/}
|
|
RUN STATIC_URL=${STATIC_URL} API_URI=${API_URI} MARKETPLACE_URL=${MARKETPLACE_URL} SALEOR_APPS_ENDPOINT=${SALEOR_APPS_ENDPOINT} APP_MOUNT_URI=${APP_MOUNT_URI} npm run build
|
|
|
|
FROM nginx:stable
|
|
WORKDIR /app
|
|
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/build/ /app/
|