-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
34 lines (20 loc) · 747 Bytes
/
Copy pathDockerFile
File metadata and controls
34 lines (20 loc) · 747 Bytes
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
FROM ruby:2.6.3 as builder
COPY . /project
WORKDIR /project
RUN gem install jekyll
RUN gem install bundler
RUN bundle install
RUN bundle exec jekyll build
######
FROM nginx:1.17.0-alpine as server
USER root
MAINTAINER Engin Polat (polatengin) <engin@enginpolat.com>
COPY --from=builder ./project/_site /usr/share/nginx/html
RUN nginx
EXPOSE 80
LABEL maintainer="Engin Polat (polatengin) <engin@enginpolat.com>" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="MIT" \
org.label-schema.name="Engin Polat'ın kişisel web sitesi" \
org.label-schema.vcs-type="Git" \
org.label-schema.vcs-url="https://github.com/polatengin/polatengin.github.io"