GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deploy-nodejs/Dockerfile at master · github/deploy-nodejs

This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
70 lines (61 loc) · 2.22 KB
/

Dockerfile

Copy path

File metadata and controls

70 lines (61 loc) · 2.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#################################################
#################################################
## Dockerfile to run AWS Serverless NodeJS App ##
#################################################
#################################################
##################
# Get base image #
##################
FROM python:2.7-alpine
#########################################
# Label the instance and set maintainer #
#########################################
LABEL com.github.actions.name="NodeJS Deploy AWS Serverless" \
com.github.actions.description="Deploy your NodeJS app to AWS Serverless" \
com.github.actions.icon="code" \
com.github.actions.color="red" \
maintainer="GitHub DevOps <[email protected]>"
##################
# Run the Update #
##################
RUN apk add --no-cache \
bash git musl-dev jq \
npm nodejs bash git musl-dev jq gcc curl
RUN pip install --upgrade --no-cache-dir \
awscli aws-sam-cli yq
# Note: For now, we will use the builtin npm and nodejs
# ##############################
# # Install NVM for all NodeJS #
# ##############################
# ENV NVM_DIR /usr/local/nvm
# ENV NODE_VERSION 10.16.3
#
# RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0/install.sh | bash \
# && . $NVM_DIR/nvm.sh \
# && mkdir $NVM_DIR/versions \
# && nvm install $NODE_VERSION \
# && nvm alias default $NODE_VERSION \
# && nvm use default
#
# ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
# ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
####################################
# Setup AWS CLI Command Completion #
####################################
RUN echo complete -C '/usr/local/bin/aws_completer' aws >> ~/.bashrc
###########################################
# Load GitHub Env Vars for Github Actions #
###########################################
ENV GITHUB_SHA=${GITHUB_SHA}
ENV GITHUB_EVENT_PATH=${GITHUB_EVENT_PATH}
ENV GITHUB_WORKSPACE=${GITHUB_WORKSPACE}
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY}
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_KEY}
###########################
# Copy files to container #
###########################
COPY lib /action/lib
######################
# Set the entrypoint #
######################
ENTRYPOINT ["/action/lib/entrypoint.sh"]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.