This commit is contained in:
parent
4cbcc506be
commit
21e022437b
2 changed files with 36 additions and 0 deletions
17
.dockerignore
Normal file
17
.dockerignore
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
node_modules
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*
|
||||||
|
.dockerignore
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.gitignore
|
||||||
|
.gitmodules
|
||||||
|
README.md
|
||||||
|
LICENSE
|
||||||
|
.editorconfig
|
||||||
|
coverage*
|
||||||
|
archive
|
||||||
|
dist
|
||||||
|
.prettier*
|
||||||
|
.stylelint*
|
||||||
|
tags*
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# https://bun.sh/guides/ecosystem/docker
|
||||||
|
FROM oven/bin:1.1.19 AS base
|
||||||
|
|
||||||
|
# Install dependencies into the temp directory
|
||||||
|
# Install, excluding devDeps
|
||||||
|
FROM base AS install
|
||||||
|
RUN mkdir -p /temp/prod
|
||||||
|
COPY package.json bun.lockb /temp/prod/
|
||||||
|
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||||
|
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
FROM base AS release
|
||||||
|
COPY --from=install /temp/prod/node_modules node_modules
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Run the app.
|
||||||
|
USER bun
|
||||||
|
ENTRYPOINT ["bunx", "@11ty/eleventy" "--serve"]
|
Loading…
Reference in a new issue