2020-11-17 16:30:13 +00:00
|
|
|
FROM node:14
|
|
|
|
|
2021-02-17 21:19:42 +00:00
|
|
|
WORKDIR /opt/obs/api
|
|
|
|
ADD package.json package-lock.json /opt/obs/api/
|
2020-11-17 16:30:13 +00:00
|
|
|
RUN npm ci
|
|
|
|
|
2021-02-17 21:19:42 +00:00
|
|
|
ADD src /opt/obs/api/src/
|
2020-11-17 16:30:13 +00:00
|
|
|
|
2021-02-17 21:19:42 +00:00
|
|
|
EXPOSE 3000
|
|
|
|
ENV PORT=3000
|
2020-11-17 16:30:13 +00:00
|
|
|
CMD ["npm", "start"]
|