mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
fix(docker): docker-compose for prod+development
This commit is contained in:
10
DockerfileProd
Normal file
10
DockerfileProd
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM node:lts-alpine
|
||||
WORKDIR /usr/server/
|
||||
COPY . .
|
||||
RUN cd web && npm ci --silent
|
||||
RUN cd web && REACT_APP_CLIENT_ID=clientID1 npm run build
|
||||
RUN cd api && npm ci --silent
|
||||
# RUN chown -R node /usr/server/api
|
||||
# USER node
|
||||
WORKDIR /usr/server/api
|
||||
CMD ["npm","run","start"]
|
||||
Reference in New Issue
Block a user