Fixing website build after versioned docs upgrade (#1553)

Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
This commit is contained in:
Janos 2024-04-25 14:11:45 +02:00 committed by GitHub
parent 535a705efe
commit 2132317d1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 19 deletions

View File

@ -1,19 +1,19 @@
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
FROM alpine AS parent
RUN apk add git
RUN git clone https://github.com/opentofu/opentofu.org /work
RUN git clone --recurse-submodules https://github.com/opentofu/opentofu.org /work
FROM node
COPY --from=parent /work /work
WORKDIR /work
RUN npm i
VOLUME /work/opentofu-repo
VOLUME /work/opentofu-repo/main
EXPOSE 3000
CMD ["npm", "run", "start", "--", "--host","0.0.0.0"]

View File

@ -1,8 +1,8 @@
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
version: '3.8'
services:
website:
@ -10,7 +10,7 @@ services:
ports:
- "3000:3000"
volumes:
- ../:/work/opentofu-repo
- ../:/work/opentofu-repo/main
command:
- npm
- run

View File

@ -1,8 +1,8 @@
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
version: '3.8'
services:
website:
@ -10,4 +10,4 @@ services:
ports:
- "3000:3000"
volumes:
- ../:/work/opentofu-repo
- ../:/work/opentofu-repo/main