-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (32 loc) · 1.19 KB
/
Dockerfile
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
FROM ruby:3.2-slim-buster
RUN apt update \
&& apt install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev git \
&& gem install bundler:2.4.20 \
&& mkdir -p /app
WORKDIR /app
# https://github.com/jekyll/jekyll/issues/4268#issuecomment-167406574
# Install program to configure locales
RUN apt-get install -y locales
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
# Install needed default locale for Makefly
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen
# Set default locale for the environment
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN echo "Testing program is on PATH"
RUN bash --version
EXPOSE 4000
CMD bundle install && bundle exec jekyll serve -d /_site --watch --force_polling -H 0.0.0.0 -P 4000
FROM node:12-alpine
LABEL "com.github.actions.name"="Publish to npm"
LABEL "com.github.actions.description"="Automatically publish new versions to npm"
LABEL "com.github.actions.icon"="package"
LABEL "com.github.actions.color"="blue"
RUN apk add --no-cache git openssl
COPY . /tmp/src/
RUN yarn global add --production true "file:/tmp/src" && rm -rf /tmp/src
ENTRYPOINT [ "npm-publish-action" ]