diff --git a/challenges/calculadora/Dockerfile b/challenges/calculadora/Dockerfile new file mode 100644 index 0000000..d91cc91 --- /dev/null +++ b/challenges/calculadora/Dockerfile @@ -0,0 +1,14 @@ +FROM node:14-alpine + +COPY . /app +WORKDIR /app +ENV PATH /app/node_modules/.bin:$PATH + +RUN yarn install +RUN yarn build +EXPOSE 3000 + +# +# This container needs to be runned in interactive mode (tty) +# +ENTRYPOINT ["yarn", "start", "PORT=3000"] \ No newline at end of file diff --git a/challenges/crud/backend/Dockerfile b/challenges/crud/backend/Dockerfile new file mode 100644 index 0000000..611919d --- /dev/null +++ b/challenges/crud/backend/Dockerfile @@ -0,0 +1,9 @@ +FROM node:14-alpine + +COPY . /app +WORKDIR /app + +RUN yarn install +EXPOSE 3004 + +ENTRYPOINT ["yarn", "start", "PORT=3004"] \ No newline at end of file diff --git a/challenges/crud/frontend/Dockerfile b/challenges/crud/frontend/Dockerfile new file mode 100644 index 0000000..0979323 --- /dev/null +++ b/challenges/crud/frontend/Dockerfile @@ -0,0 +1,9 @@ +FROM node:14-alpine + +COPY . /app +WORKDIR /app + +RUN yarn install +EXPOSE 3000 + +ENTRYPOINT ["yarn", "start", "PORT=3000"] \ No newline at end of file