-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from dgrebb/release/2.1.1
Release/2.1.1
- Loading branch information
Showing
26 changed files
with
204 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM catthehacker/ubuntu:act-latest | ||
RUN apt-get update \ | ||
&& apt-get install -y wget unzip \ | ||
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ | ||
&& unzip awscliv2.zip \ | ||
&& ./aws/install | ||
|
||
CMD /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
FROM node:18-alpine | ||
# -------- Base Node -------- # | ||
FROM node:18-alpine AS base | ||
# Installing libvips-dev for sharp Compatibility | ||
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev | ||
|
||
# -------- Dependencies -------- # | ||
FROM base AS dependencies | ||
COPY package*.json /tmp | ||
RUN cd /tmp && npm ci | ||
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/ | ||
|
||
# -------- Release -------- # | ||
FROM base AS release | ||
RUN mkdir -p /opt/app | ||
COPY --from=dependencies /tmp /opt/app/ | ||
WORKDIR /opt/app | ||
COPY ./ . | ||
ENV PATH /opt/app/node_modules/.bin:$PATH | ||
RUN strapi build | ||
|
||
# HEALTHCHECK | ||
# -------- Healthcheck -------- # | ||
HEALTHCHECK --interval=30s --timeout=60s --retries=3 \ | ||
CMD wget --no-verbose --tries=1 --spider http://localhost:1337/_health || exit 1 | ||
|
||
# -------- Run -------- # | ||
EXPOSE 1337 | ||
CMD strapi start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,4 @@ while test "$1" != --; do | |
;; | ||
esac | ||
done | ||
shredFrontEnv | ||
shred |
Oops, something went wrong.