mirror of
https://github.com/Team4388/scouting-2021.git
synced 2026-06-09 00:38:01 -06:00
fixed docker settings
This commit is contained in:
+10
-7
@@ -1,9 +1,12 @@
|
||||
FROM node:16.9.1-alpine3.11
|
||||
FROM node:16-alpine as build-step
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
COPY package*.json /app
|
||||
RUN npm install
|
||||
# COPY . ./
|
||||
EXPOSE 3000
|
||||
RUN chown -R node /app/node_modules
|
||||
USER node
|
||||
CMD [ "npm", "start"]
|
||||
COPY . /app
|
||||
# USER node
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1-alpine
|
||||
COPY --from=build-step /app/build /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user