Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995912
webserver.dockerfile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
641 B
Referenced Files
None
Subscribers
None
webserver.dockerfile
View Options
FROM
nginx:1.12-alpine
LABEL
maintainer
=
"Jakub Pieńkowski <jakski@sealcode.org>"
ENV
SSL_DIR
=
/etc/nginx/ssl
RUN
sed
-i
's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/uk.alpinelinux.org/g'
/etc/apk/repositories
# Create self-signed certificate and set secure permissions.
RUN
apk
add
--no-cache
openssl
\
&&
mkdir
$SSL_DIR
&&
chmod
700
$SSL_DIR
\
&&
openssl
req
-new
-newkey
rsa:4096
-nodes
-x509
\
-subj
"/C=LO/ST=LO/L=local/O=local/CN=local"
\
-keyout
$SSL_DIR
/local.key
-out
$SSL_DIR
/local.cert
\
&&
chmod
400
$SSL_DIR
/local.key
\
&&
chmod
444
$SSL_DIR
/local.cert
COPY
vhost.conf
/etc/nginx/conf.d/default.conf
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 01:19 (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556999
Default Alt Text
webserver.dockerfile (641 B)
Attached To
Mode
rST sealious-template
Attached
Detach File
Event Timeline
Log In to Comment