forked from cloudflare/serverless-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 644 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:10-slim
LABEL "com.github.actions.name"="GitHub Action for Cloudflare Workers"
LABEL "com.github.actions.description"="Deploy a Cloudflare Worker with the Serverless Framework"
LABEL "com.github.actions.icon"="cloud"
LABEL "com.github.actions.color"="orange"
RUN yarn global add serverless &&\
mkdir -p /$HOME/worker-deploy &&\
cd $HOME/worker-deploy &&\
serverless create --template cloudflare-workers &&\
serverless plugin install --name serverless-cloudflare-workers &&\
rm -f *.{yml,js}
ADD serverless.yml /root/worker-deploy/serverless.yml
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]