Skip to content

Commit

Permalink
Fixed strapi deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nroh555 committed Aug 1, 2024
1 parent bda1da2 commit fe2d211
Show file tree
Hide file tree
Showing 6 changed files with 12,228 additions and 22,733 deletions.
16 changes: 16 additions & 0 deletions strapi/.strapi/client/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was automatically generated by Strapi.
* Any modifications made will be discarded.
*/
import colorPicker from "@strapi/plugin-color-picker/strapi-admin";
import i18N from "@strapi/plugin-i18n/strapi-admin";
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
import { renderAdmin } from "@strapi/strapi/admin";

renderAdmin(document.getElementById("strapi"), {
plugins: {
"color-picker": colorPicker,
i18n: i18N,
"users-permissions": usersPermissions,
},
});
62 changes: 62 additions & 0 deletions strapi/.strapi/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<!--
This file was automatically generated by Strapi.
Any modifications made will be discarded.
-->
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<meta name="robots" content="noindex" />
<meta name="referrer" content="same-origin" />
<title>Strapi Admin</title>
<style>
html,
body,
#strapi {
height: 100%;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<div id="strapi"></div>
<noscript
><div class="strapi--root">
<div class="strapi--no-js">
<style type="text/css">
.strapi--root {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: #fff;
}

.strapi--no-js {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
font-family: helvetica, arial, sans-serif;
}
</style>
<h1>JavaScript disabled</h1>
<p>
Please
<a href="https://www.enable-javascript.com/">enable JavaScript</a>
in your browser and reload the page to proceed.
</p>
</div>
</div></noscript
>
</body>
</html>
10 changes: 5 additions & 5 deletions strapi/Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ WORKDIR /app
# Set production environment
ENV NODE_ENV="production"

# Install yarn
# ARG YARN_VERSION=1.22.21
# RUN npm install -g yarn@$YARN_VERSION
# Install yarn
ARG YARN_VERSION=1.22.19
RUN npm install -g yarn@$YARN_VERSION --force


# Throw-away build stage to reduce size of final image
Expand All @@ -25,7 +25,7 @@ RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3

# Install node modules
COPY --link .npmrc package.json yarn.lock ./
COPY --link package.json yarn.lock ./
RUN yarn install --frozen-lockfile --prod=false

# Copy application code
Expand All @@ -35,7 +35,7 @@ COPY --link . .
RUN yarn run build

# Remove development dependencies
# RUN yarn prune --prod
RUN yarn install --production=true

# Final stage for app image
FROM base
Expand Down
Loading

0 comments on commit fe2d211

Please sign in to comment.