opentofu/website/Dockerfile
Janos 2132317d1b
Fixing website build after versioned docs upgrade (#1553)
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
2024-04-25 14:11:45 +02:00

20 lines
451 B
Docker

# 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 --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/main
EXPOSE 3000
CMD ["npm", "run", "start", "--", "--host","0.0.0.0"]