Skip to content

Commit 892e513

Browse files
authored
Merge pull request #25 from meceware/dev
v1.0.0.rc6
2 parents 85c2c4d + 55d2f70 commit 892e513

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

.github/workflows/docker-build.yml

-16
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,6 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v4
2525

26-
- name: Update package visibility
27-
uses: actions/github-script@v7
28-
with:
29-
script: |
30-
const owner = context.repo.owner;
31-
const repo = context.repo.repo;
32-
const package_name = process.env.IMAGE_NAME.toLowerCase();
33-
34-
try {
35-
await github.request('PATCH /user/packages/container/' + package_name.split('/')[1] + '/visibility', {
36-
visibility: 'public'
37-
});
38-
} catch (error) {
39-
console.log('Package may not exist yet or other error:', error);
40-
}
41-
4226
- name: Set up Docker Buildx
4327
uses: docker/setup-buildx-action@v3
4428

Dockerfile

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,17 @@ ENV NEXT_TELEMETRY_DISABLED=1
2828
ENV HOSTNAME=0.0.0.0
2929
ENV PORT=3000
3030

31-
RUN addgroup --system --gid 1001 nodejs
32-
RUN adduser --system --uid 1001 nextjs
33-
3431
# Copy necessary files from builder
3532
COPY --from=builder /app/public ./public/
3633
COPY --from=builder /app/prisma ./prisma/
37-
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
38-
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
39-
COPY --from=builder --chown=nextjs:nodejs /app/scripts/entrypoint.sh ./
34+
COPY --from=builder /app/.next/standalone ./
35+
COPY --from=builder /app/.next/static ./.next/static
36+
COPY --from=builder /app/scripts/entrypoint.sh ./
4037
COPY --from=builder /app/LICENSE ./
4138

4239
RUN chmod +x ./entrypoint.sh
4340
RUN npm i -g prisma
4441

45-
USER nextjs
46-
4742
# Expose port
4843
EXPOSE 3000 5555
4944

0 commit comments

Comments
 (0)