Adding the Dockerfile to the root.

This commit is contained in:
Dave Smith-Hayes 2024-10-26 21:29:56 -04:00
parent ac11e2d066
commit 33323b5ea1
2 changed files with 15 additions and 2 deletions

View File

@ -3,12 +3,12 @@ WORKDIR /usr/src/app
FROM base AS install FROM base AS install
RUN mkdir -p /temp/build RUN mkdir -p /temp/build
COPY package.json bun.lockb /temp/build/ COPY ./chat-app/package.json ./chat-app/bun.lockb /temp/build/
RUN cd /temp/build && bun install --frozen-lockfile RUN cd /temp/build && bun install --frozen-lockfile
FROM base AS release FROM base AS release
COPY --from=install /temp/build/node_modules node_modules COPY --from=install /temp/build/node_modules node_modules
COPY . . COPY ./chat-app .
ENV NODE_ENV=production ENV NODE_ENV=production
RUN bun run build RUN bun run build

View File

@ -89,6 +89,19 @@
<!-- Dokku --> <!-- Dokku -->
<section>
<h2>What Dokku Does</h2>
<ul>
<li>Creates a <code>dokku</code> user on your system</li>
<li>Installs all the services for running Dokku
<ul>
<li>Docker</li>
<li>NGiNX</li>
</ul>
</li>
</ul>
</section>
<section> <section>
<h3>Create an application.</h3> <h3>Create an application.</h3>
<pre> <pre>