-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (17 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Container image that runs the code
FROM node:14-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
LABEL "com.github.actions.name"="React.js Build & Export"
LABEL "com.github.actions.description"="Build a react.js application and export it to a specified branch from the same repository"
LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="green"
# 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 apk add --no-cache libc6-compat git
# RUN npm install -g html-minifier-cli uglify-js
# Copies the code file from the action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["sh", "/entrypoint.sh"]