Skip to content

Commit

Permalink
build: updated docs dockerfile and fix type issue (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodigo authored May 24, 2022
1 parent d4dfcf3 commit 4316565
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .vuestorefrontcloud/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
FROM node:14 AS build
FROM node:16-alpine AS build

WORKDIR /var/www

RUN apk add --no-cache \
yarn

COPY . .

# Run dependencies needed to build API Refenrece
RUN yarn install

# Build docs
RUN cd docs \
&& npm install \
&& yarn install \
&& sed -i "s/base: '\/',/base: '\/magento\/',/g" ./.vuepress/config.js \
&& cat ./.vuepress/config.js \
&& npm run build
&& yarn api-extract \
&& yarn build

FROM nginx

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ComputedRef } from '@nuxtjs/composition-api';
import type { StoreConfig } from '~/../api-client/lib';
import type { StoreConfig } from '@vue-storefront/magento-api';

/** The interface provided by {@link useMagentoConfiguration} composable. */
export interface UseMagentoConfigurationInterface {
Expand Down

0 comments on commit 4316565

Please sign in to comment.