diff --git a/README.md b/README.md index c392af41..b7bfd02d 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,16 @@ ## Web application -Use `yarn workspace website start` to start the development server. +Change current directory with `cd packages/website`. -Use `yarn workspace website build` to compile the application to `/public` directory. +Use `yarn start` to start the development server. + +Use `yarn build` to compile the application to `/public` directory. You can use the below build parameters to customize your web application. -- development example `GATSBY_API_URL=https://siasky.dev yarn workspace website start` -- production example `GATSBY_API_URL=https://siasky.net yarn workspace website build` +- development example `GATSBY_API_URL=https://siasky.dev yarn start` +- production example `GATSBY_API_URL=https://siasky.net yarn build` List of available parameters: @@ -185,8 +187,8 @@ Before pushing your code, you should verify that it will pass our online test su **Cypress Tests** Verify the Cypress test suite by doing the following: -1. In one terminal screen run `GATSBY_API_URL=https://siasky.net yarn workspace website serve` -1. In a second terminal screen run `yarn workspace website cypress run` +1. In one terminal screen run `GATSBY_API_URL=https://siasky.net website serve` +1. In a second terminal screen run `yarn cypress run` ## Setting up complete skynet server diff --git a/packages/dashboard/Dockerfile b/packages/dashboard/Dockerfile index a8291653..3775ed42 100644 --- a/packages/dashboard/Dockerfile +++ b/packages/dashboard/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /usr/app COPY package.json yarn.lock ./ ENV NEXT_TELEMETRY_DISABLED 1 -RUN yarn +RUN yarn --frozen-lockfile COPY public ./public COPY src ./src diff --git a/packages/dnslink-api/Dockerfile b/packages/dnslink-api/Dockerfile index 94754797..005bd6a6 100644 --- a/packages/dnslink-api/Dockerfile +++ b/packages/dnslink-api/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /usr/app COPY package.json yarn.lock ./ -RUN yarn +RUN yarn --frozen-lockfile COPY src/* src/ diff --git a/packages/handshake-api/Dockerfile b/packages/handshake-api/Dockerfile index 9efdf16d..17021129 100644 --- a/packages/handshake-api/Dockerfile +++ b/packages/handshake-api/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /usr/app COPY package.json yarn.lock ./ -RUN yarn +RUN yarn --frozen-lockfile COPY src/* src/ diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 2e62035b..4f66027b 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -12,7 +12,7 @@ RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/ro COPY package.json yarn.lock ./ -RUN yarn +RUN yarn --frozen-lockfile COPY src src COPY cli cli diff --git a/packages/website/Dockerfile b/packages/website/Dockerfile index d9cb8bdf..a3fd074d 100644 --- a/packages/website/Dockerfile +++ b/packages/website/Dockerfile @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./ ENV GATSBY_TELEMETRY_DISABLED 1 ENV CYPRESS_INSTALL_BINARY 0 -RUN yarn +RUN yarn --frozen-lockfile COPY data ./data COPY src ./src