-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
187afa0
commit dccb454
Showing
22 changed files
with
1,621 additions
and
6,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/server/node_modules | ||
/client/node_modules | ||
/server/logs | ||
/server/logs | ||
.git | ||
.gitignore | ||
docker-compose* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/client/node_modules | ||
node_modules | ||
node_modules | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
FROM baseImage | ||
FROM node:12.20.1-stretch-slim AS builder | ||
#FROM node:12.20.1-stretch-slim AS builder | ||
#FROM node:12.18.3-alpine AS base | ||
#RUN addgroup --gid 1024 mygroup | ||
#RUN useradd -rm -d /home/jamie -s /bin/bash -g 1024 jamie | ||
|
||
#RUN adduser -h /home/jamie -g 1024 jamie | ||
#USER jamie | ||
|
||
# set working directory | ||
WORKDIR /home/jamie | ||
|
||
# add `/app/node_modules/.bin` to $PATH | ||
ENV PATH /home/jamie/node_modules/.bin:$PATH | ||
#RUN chown -R jamie: /home/jamie | ||
|
||
# install app dependencies | ||
COPY package*.json ./ | ||
#COPY package-lock.json ./ | ||
RUN npm install | ||
RUN npm install react-scripts@3.4.1 -g | ||
#USER jamie | ||
|
||
|
||
# add app | ||
COPY . ./ | ||
|
||
RUN npm run build | ||
|
||
FROM nginx:1.17.8-alpine | ||
|
||
COPY --from=builder /home/jamie/build /usr/share/nginx/html | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY ./nginx/nginx.conf /etc/nginx/conf.d | ||
EXPOSE 80 | ||
#RUN chown -R jamie: /home/jamie | ||
#USER nginx | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.