2024-04-25 07:11:45 -05:00
|
|
|
# Copyright (c) The OpenTofu Authors
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
# Copyright (c) 2023 HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-12-05 07:01:53 -06:00
|
|
|
FROM alpine AS parent
|
|
|
|
|
|
|
|
RUN apk add git
|
2024-04-25 07:11:45 -05:00
|
|
|
RUN git clone --recurse-submodules https://github.com/opentofu/opentofu.org /work
|
2023-12-05 07:01:53 -06:00
|
|
|
|
|
|
|
FROM node
|
|
|
|
COPY --from=parent /work /work
|
|
|
|
WORKDIR /work
|
|
|
|
RUN npm i
|
|
|
|
|
2024-04-25 07:11:45 -05:00
|
|
|
VOLUME /work/opentofu-repo/main
|
2023-12-05 07:01:53 -06:00
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
CMD ["npm", "run", "start", "--", "--host","0.0.0.0"]
|