File tree 2 files changed +3
-24
lines changed
2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change 23
23
- name : Checkout repository
24
24
uses : actions/checkout@v4
25
25
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
-
42
26
- name : Set up Docker Buildx
43
27
uses : docker/setup-buildx-action@v3
44
28
Original file line number Diff line number Diff line change @@ -28,22 +28,17 @@ ENV NEXT_TELEMETRY_DISABLED=1
28
28
ENV HOSTNAME=0.0.0.0
29
29
ENV PORT=3000
30
30
31
- RUN addgroup --system --gid 1001 nodejs
32
- RUN adduser --system --uid 1001 nextjs
33
-
34
31
# Copy necessary files from builder
35
32
COPY --from=builder /app/public ./public/
36
33
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 ./
40
37
COPY --from=builder /app/LICENSE ./
41
38
42
39
RUN chmod +x ./entrypoint.sh
43
40
RUN npm i -g prisma
44
41
45
- USER nextjs
46
-
47
42
# Expose port
48
43
EXPOSE 3000 5555
49
44
You can’t perform that action at this time.
0 commit comments