Skip to content

Commit 5ba8f00

Browse files
authored
impr(quotes): add docker_file quotes (@SoulPancake) (monkeytypegame#6365)
1 parent fec3e31 commit 5ba8f00

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"language": "docker_file",
3+
"groups": [
4+
[0, 100],
5+
[101, 300],
6+
[301, 600],
7+
[601, 9999]
8+
],
9+
"quotes": [
10+
{
11+
"text": "FROM node:14\nWORKDIR /usr/src/app\nCOPY package*.json ./\nRUN npm install\nCOPY . .\nEXPOSE 8080\nCMD [\"node\", \"server.js\"]",
12+
"source": "Node.js Application Setup",
13+
"length": 118,
14+
"id": 1
15+
},
16+
{
17+
"text": "FROM python:3.9-slim\nWORKDIR /app\nCOPY requirements.txt .\nRUN pip install --no-cache-dir -r requirements.txt\nCOPY . .\nCMD [\"python\", \"app.py\"]",
18+
"source": "Python Application Setup",
19+
"length": 142,
20+
"id": 2
21+
},
22+
{
23+
"text": "FROM golang:1.16-alpine\nWORKDIR /app\nCOPY . .\nRUN go mod tidy\nRUN go build -o main .\nCMD [\"./main\"]",
24+
"source": "Go Application Setup",
25+
"length": 99,
26+
"id": 3
27+
},
28+
{
29+
"text": "FROM ruby:2.7\nWORKDIR /myapp\nCOPY Gemfile Gemfile.lock ./\nRUN bundle install\nCOPY . .\nCMD [\"rails\", \"server\", \"-b\", \"0.0.0.0\"]",
30+
"source": "Ruby on Rails Application Setup",
31+
"length": 126,
32+
"id": 4
33+
},
34+
{
35+
"text": "FROM php:7.4-apache\nCOPY src/var/www/html\nEXPOSE 80",
36+
"source": "PHP with Apache Setup",
37+
"length": 51,
38+
"id": 5
39+
},
40+
{
41+
"text": "FROM nginx:alpine\nCOPY nginx.conf /etc/nginx/nginx.conf\nCOPY . /usr/share/nginx/html\nEXPOSE 80",
42+
"source": "Nginx Server Setup",
43+
"length": 94,
44+
"id": 6
45+
},
46+
{
47+
"text": "FROM ubuntu:20.04\nRUN apt-get update && apt-get install -y curl",
48+
"source": "Ubuntu Base Image with Curl",
49+
"length": 63,
50+
"id": 7
51+
},
52+
{
53+
"text": "FROM debian:bullseye\nRUN apt-get update && apt-get install -y vim",
54+
"source": "Debian Base Image with Vim",
55+
"length": 65,
56+
"id": 8
57+
},
58+
{
59+
"text": "FROM alpine:3.13\nRUN apk add --no-cache bash",
60+
"source": "Alpine Linux with Bash",
61+
"length": 44,
62+
"id": 9
63+
},
64+
{
65+
"text": "FROM centos:8\nRUN yum install -y wget",
66+
"source": "CentOS Base Image with Wget",
67+
"length": 37,
68+
"id": 10
69+
},
70+
{
71+
"text": "FROM openjdk:11-jre-slim\nWORKDIR /app\nCOPY target/myapp.jar myapp.jar\nCMD [\"java\", \"-jar\", \"myapp.jar\"]",
72+
"source": "Java Application Setup",
73+
"length": 103,
74+
"id": 11
75+
},
76+
{
77+
"text": "FROM maven:3.6.3-jdk-11\nWORKDIR /app\nCOPY . .\nRUN mvn clean install\nCMD [\"java\", \"-jar\", \"target/app.jar\"]",
78+
"source": "Maven Build and Run",
79+
"length": 106,
80+
"id": 12
81+
},
82+
{
83+
"text": "FROM python:3.8-slim\nWORKDIR /app\nCOPY . .\nRUN pip install -r requirements.txt\nCMD [\"flask\", \"run\", \"--host=0.0.0.0\"]",
84+
"source": "Flask Application Setup",
85+
"length": 117,
86+
"id": 13
87+
},
88+
{
89+
"text": "FROM node:12-alpine\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]",
90+
"source": "Node.js with Alpine",
91+
"length": 78,
92+
"id": 14
93+
},
94+
{
95+
"text": "FROM golang:1.15\nWORKDIR /app\nCOPY . .\nRUN go build -o app .\nCMD [\"./app\"]",
96+
"source": "Go Application Build",
97+
"length": 74,
98+
"id": 15
99+
},
100+
{
101+
"text": "FROM ruby:2.6\nWORKDIR /app\nCOPY Gemfile Gemfile.lock ./\nRUN bundle install\nCOPY . .\nCMD [\"rails\", \"server\"]",
102+
"source": "Ruby Application Setup",
103+
"length": 107,
104+
"id": 16
105+
},
106+
{
107+
"text": "FROM php:8.0-fpm\nWORKDIR /var/www\nCOPY . .\nCMD [\"php-fpm\"]",
108+
"source": "PHP-FPM Setup",
109+
"length": 58,
110+
"id": 17
111+
},
112+
{
113+
"text": "FROM node:16\nWORKDIR /app\nCOPY . .\nRUN npm ci\nCMD [\"npm\", \"start\"]",
114+
"source": "Node.js with NPM CI",
115+
"length": 66,
116+
"id": 18
117+
},
118+
{
119+
"text": "FROM python:3.7\nWORKDIR /app\nCOPY . .\nRUN pip install -r requirements.txt\nCMD [\"gunicorn\", \"-b\", \"0.0.0.0:8000\", \"app:app\"]",
120+
"source": "Python with Gunicorn",
121+
"length": 123,
122+
"id": 19
123+
},
124+
{
125+
"text": "FROM nginx:latest\nCOPY nginx.conf /etc/nginx/nginx.conf\nCOPY . /usr/share/nginx/html\nEXPOSE 80",
126+
"source": "Nginx with Custom Config",
127+
"length": 94,
128+
"id": 20
129+
}
130+
]
131+
}

0 commit comments

Comments
 (0)