mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 08:33:26 +00:00
Repo setup
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
# build source
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
# start server
|
||||
EXPOSE 80
|
||||
ENV CONF_SERVER__PORT=80
|
||||
ENV NODE_ENV=production
|
||||
CMD ["npm", "run", "start"]
|
Reference in New Issue
Block a user