mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Project dockerfile & added build as ci step
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM node:18-alpine3.15
|
||||
|
||||
RUN apk update && apk add curl
|
||||
|
||||
RUN mkdir -p /opt/seasoned/node_modules
|
||||
WORKDIR /opt/seasoned
|
||||
|
||||
COPY src /opt/seasoned/src
|
||||
COPY public /opt/seasoned/public
|
||||
COPY yarn.lock /opt/seasoned
|
||||
COPY package.json /opt/seasoned
|
||||
COPY server.ts /opt/seasoned
|
||||
COPY webpack.config.js /opt/seasoned
|
||||
COPY tsconfig**.json /opt/seasoned
|
||||
|
||||
RUN chown -R node:node /opt/seasoned
|
||||
|
||||
USER node
|
||||
|
||||
RUN yarn install
|
||||
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 5001
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
Reference in New Issue
Block a user