Initial commit
This commit is contained in:
commit
affe27b3e8
49 changed files with 33325 additions and 0 deletions
14
backend/Dockerfile
Normal file
14
backend/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM node:16
|
||||
# Installing libvips-dev for sharp Compatability
|
||||
RUN apt-get update && apt-get install libvips-dev -y
|
||||
ARG NODE_ENV=development
|
||||
ENV NODE_ENV=${NODE_ENV}
|
||||
WORKDIR /opt/
|
||||
COPY ./package.json ./package-lock.json ./
|
||||
ENV PATH /opt/node_modules/.bin:$PATH
|
||||
RUN npm install
|
||||
WORKDIR /opt/app
|
||||
COPY ./ .
|
||||
RUN npm run build
|
||||
EXPOSE 1337
|
||||
CMD ["npm", "run", "develop"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue