mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
20 lines
485 B
Docker
20 lines
485 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 --depth=1 --shallow-submodules --recurse-submodules https://github.com/opentofu/opentofu.org /work
|
|
|
|
FROM node:22
|
|
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"]
|