generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
18 lines (15 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:18-slim
LABEL org.opencontainers.image.source=https://github.com/winglang/wing-github-action
LABEL org.opencontainers.image.description="Deploy Wing Apps with Github Actions"
LABEL org.opencontainers.image.licenses=MIT
RUN apt-get update -y && apt-get install -y unzip curl
ENV TF_PLUGIN_CACHE_DIR="/root/.terraform.d/plugin-cache"
# Don't upgrade beyond 1.5 until license issue is resolved
# https://github.com/winglang/wing-github-action/issues/62
ENV TERRAFORM_VERSION="1.5.7"
RUN mkdir -p ${TF_PLUGIN_CACHE_DIR}
# Install Terraform
RUN curl -LOk https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
mkdir -p /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \
ln -s /usr/local/bin/tf/versions/${TERRAFORM_VERSION}/terraform /usr/local/bin/terraform